コード例 #1
0
  private static boolean toolSettingsAreEqual(
      String toolName, InspectionProfileImpl profile1, InspectionProfileImpl profile2) {
    final ToolsImpl toolList1 = profile1.myTools.get(toolName);
    final ToolsImpl toolList2 = profile2.myTools.get(toolName);

    return toolList1 == null && toolList2 == null
        || toolList1 != null && toolList2 != null && toolList1.equalTo(toolList2);
  }
コード例 #2
0
 public boolean isProperSetting(HighlightDisplayKey key) {
   final Map<String, Boolean> diffMap = getDisplayLevelMap();
   if (diffMap != null) {
     final ToolsImpl tools = myBaseProfile.getTools(key.toString());
     final ToolsImpl currentTools = myTools.get(key.toString());
     if (tools != null && currentTools != null) {
       diffMap.put(key.toString(), tools.equalTo(currentTools));
     } else {
       diffMap.put(key.toString(), tools == currentTools);
     }
     return !diffMap.get(key.toString()).booleanValue();
   }
   return false;
 }