private static boolean somethingWasStashed(@NotNull GitCommandResult result) {
   return !StringUtil.containsIgnoreCase(
           result.getErrorOutputAsJoinedString(), NO_LOCAL_CHANGES_TO_SAVE)
       && !StringUtil.containsIgnoreCase(
           result.getOutputAsJoinedString(), NO_LOCAL_CHANGES_TO_SAVE);
 }
Пример #2
0
 private static boolean isSunJvm() {
   final String vendor = SystemProperties.getJavaVmVendor();
   return vendor != null
       && StringUtil.containsIgnoreCase(vendor, "Sun")
       && StringUtil.containsIgnoreCase(vendor, "Microsystems");
 }
Пример #3
0
 private static boolean isJetbrainsJvm() {
   final String vendor = SystemProperties.getJavaVendor();
   return vendor != null && StringUtil.containsIgnoreCase(vendor, "jetbrains");
 }
Пример #4
0
 private static boolean isOracleJvm() {
   final String vendor = SystemProperties.getJavaVmVendor();
   return vendor != null && StringUtil.containsIgnoreCase(vendor, "Oracle");
 }