You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2015/07/28 07:10:45 UTC

svn commit: r1692994 - in /directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/editor: TemplateEntryEditor.java TemplateEntryEditorNavigationLocation.java

Author: elecharny
Date: Tue Jul 28 05:10:44 2015
New Revision: 1692994

URL: http://svn.apache.org/r1692994
Log:
o Removed useless checked on x != null when && ( x instanceof X )

Modified:
    directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/editor/TemplateEntryEditor.java
    directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/editor/TemplateEntryEditorNavigationLocation.java

Modified: directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/editor/TemplateEntryEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/editor/TemplateEntryEditor.java?rev=1692994&r1=1692993&r2=1692994&view=diff
==============================================================================
--- directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/editor/TemplateEntryEditor.java (original)
+++ directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/editor/TemplateEntryEditor.java Tue Jul 28 05:10:44 2015
@@ -210,7 +210,8 @@ public abstract class TemplateEntryEdito
     public EntryEditorInput getEntryEditorInput()
     {
         Object editorInput = getEditorInput();
-        if ( ( editorInput != null ) && ( editorInput instanceof EntryEditorInput ) )
+        
+        if ( editorInput instanceof EntryEditorInput )
         {
             return ( EntryEditorInput ) editorInput;
         }

Modified: directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/editor/TemplateEntryEditorNavigationLocation.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/editor/TemplateEntryEditorNavigationLocation.java?rev=1692994&r1=1692993&r2=1692994&view=diff
==============================================================================
--- directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/editor/TemplateEntryEditorNavigationLocation.java (original)
+++ directory/studio/trunk/plugins/templateeditor/src/main/java/org/apache/directory/studio/templateeditor/editor/TemplateEntryEditorNavigationLocation.java Tue Jul 28 05:10:44 2015
@@ -222,9 +222,11 @@ public class TemplateEntryEditorNavigati
     private EntryEditorInput getEntryEditorInput()
     {
         Object editorInput = getInput();
-        if ( editorInput != null && editorInput instanceof EntryEditorInput )
+        
+        if ( editorInput instanceof EntryEditorInput )
         {
             EntryEditorInput entryEditorInput = ( EntryEditorInput ) editorInput;
+            
             return entryEditorInput;
         }