Code cleaning (removed trailing space characters) 18/11118/1
authorkh5325.kim <kh5325.kim@samsung.com>
Fri, 18 Oct 2013 13:07:29 +0000 (22:07 +0900)
committerkh5325.kim <kh5325.kim@samsung.com>
Fri, 18 Oct 2013 13:07:29 +0000 (22:07 +0900)
Change-Id: I763c0fd2a7bd400d28389097a0877566596ed317
Signed-off-by: kh5325.kim <kh5325.kim@samsung.com>
53 files changed:
org.tizen.common.builder/src/org/tizen/common/builder/BuildProcess.java
org.tizen.common.builder/test/src/org/tizen/common/builder/BuildProcessTest.java
org.tizen.common.connection/src/org/tizen/common/connection/preference/TizenToolsPreferencePage.java
org.tizen.common.connection/src/org/tizen/common/connection/properties/ConnectionExplorerInfoPropertyPages.java
org.tizen.common.connection/src/org/tizen/common/connection/properties/ConnectionExplorerPermissionPropertyPages.java
org.tizen.common.connection/src/org/tizen/common/connection/sdblib/dnd/FileEntryTransfer.java
org.tizen.common.connection/src/org/tizen/common/connection/ui/TizenRemoteFileLabelProvider.java
org.tizen.common.externals/src/org/tizen/common/externals/navigatorContent/PackageActionProvider.java
org.tizen.common.gom/src/org/tizen/common/gom/smartlaunch/ui/GomContentProvider.java
org.tizen.common.gom/src/org/tizen/common/gom/smartlaunch/ui/GomDialog.java
org.tizen.common.sdblib/src/org/tizen/sdblib/Device.java
org.tizen.common.sdblib/src/org/tizen/sdblib/SdbHelper.java
org.tizen.common.sdblib/src/org/tizen/sdblib/dlog/DlogBriefParser.java
org.tizen.common.sdblib/src/org/tizen/sdblib/dlog/DlogLongParser.java
org.tizen.common.sdblib/src/org/tizen/sdblib/util/ArrayUtil.java
org.tizen.common.sdblib/src/org/tizen/sdblib/util/Assert.java
org.tizen.common.sdblib/src/org/tizen/sdblib/util/CollectionUtil.java
org.tizen.common.sdblib/src/org/tizen/sdblib/util/ObjectUtil.java
org.tizen.common.sign/src/org/tizen/common/sign/model/Certification.java
org.tizen.common.sign/src/org/tizen/common/sign/preferences/SigningProfile.java
org.tizen.common.sign/src/org/tizen/common/sign/ui/ProfileItemDialog.java
org.tizen.common.ui/src/org/tizen/common/ui/commandbar/StatusBar.java
org.tizen.common.ui/src/org/tizen/common/ui/commandbar/assistant/AssistantBubble.java
org.tizen.common.verrari.realm/src/org/tizen/common/verrari/template/DirectoryTemplate.java
org.tizen.common.verrari.realm/src/org/tizen/common/verrari/template/StandardTemplate.java
org.tizen.common.verrari.realm/test/src/org/tizen/common/verrari/realm/DirectoryRealmTest.java
org.tizen.common.verrari.realm/test/src/org/tizen/common/verrari/realm/JarRealmTest.java
org.tizen.common/src/org/tizen/common/config/ExpressionParser.java
org.tizen.common/src/org/tizen/common/core/application/UpdateManager.java
org.tizen.common/src/org/tizen/common/core/command/CompositeCommand.java
org.tizen.common/src/org/tizen/common/core/command/ExecutionContext.java
org.tizen.common/src/org/tizen/common/core/command/file/WriteFileCommand.java
org.tizen.common/src/org/tizen/common/ui/dialog/DynamicDialog.java
org.tizen.common/src/org/tizen/common/ui/view/console/AnsicodeAdapter.java
org.tizen.common/src/org/tizen/common/ui/view/console/ConsoleManager2.java
org.tizen.common/src/org/tizen/common/util/ArrayUtil.java
org.tizen.common/src/org/tizen/common/util/Assert.java
org.tizen.common/src/org/tizen/common/util/CollectionMap.java
org.tizen.common/src/org/tizen/common/util/CollectionUtil.java
org.tizen.common/src/org/tizen/common/util/DialogUtil.java
org.tizen.common/src/org/tizen/common/util/FileUtil.java
org.tizen.common/src/org/tizen/common/util/HostUtil.java
org.tizen.common/src/org/tizen/common/util/NotifierDialog.java
org.tizen.common/src/org/tizen/common/util/ObjectUtil.java
org.tizen.common/src/org/tizen/common/util/ProcessMonitorThread.java
org.tizen.common/src/org/tizen/common/util/ProjectUtil.java
org.tizen.common/src/org/tizen/common/util/StreamGobbler.java
org.tizen.common/src/org/tizen/common/util/cache/FontCache.java
org.tizen.common/src/org/tizen/common/util/log/EclipseAppender.java
org.tizen.common/test/src/org/tizen/common/config/PreferenceTest.java
org.tizen.common/test/src/org/tizen/common/util/HostUtilTest.java
org.tizen.common/test/src/org/tizen/common/util/IOUtilTest.java
org.tizen.common/test/src/org/tizen/common/util/io/BufferTest.java

index 6e079fc..4611f92 100755 (executable)
@@ -56,7 +56,7 @@ public class BuildProcess
     protected final Logger logger = LoggerFactory.getLogger( getClass() );\r
     \r
     protected final List<Builder> builders = new ArrayList<Builder>();\r
-    protected final BuildDependency dependencies; \r
+    protected final BuildDependency dependencies;\r
     \r
     /**\r
      * Default constructor using the memory dependencies ( {@link DependencyInMemory} )\r
index c2ef08c..010e63a 100755 (executable)
@@ -170,7 +170,7 @@ extends AbstractTestCase
                 try {\r
                     if (resource!=null\r
                             && resource.getName().endsWith("js")) {\r
-                        return true; \r
+                        return true;\r
                     }\r
                 } catch (IOException e) {\r
                     return false;\r
@@ -184,7 +184,7 @@ extends AbstractTestCase
                 try {\r
                     if (resource!=null\r
                             && resource.getName().endsWith("html")) {\r
-                        return true; \r
+                        return true;\r
                     }\r
                 } catch (IOException e) {\r
                     return false;\r
@@ -268,7 +268,7 @@ extends AbstractTestCase
                 try {\r
                     if (resource!=null\r
                             && resource.getName().endsWith("js")) {\r
-                        return true; \r
+                        return true;\r
                     }\r
                 } catch (IOException e) {\r
                     return false;\r
@@ -282,7 +282,7 @@ extends AbstractTestCase
                 try {\r
                     if (resource!=null\r
                             && resource.getName().endsWith("html")) {\r
-                        return true; \r
+                        return true;\r
                     }\r
                 } catch (IOException e) {\r
                     return false;\r
index d1a2c17..072c303 100644 (file)
@@ -39,7 +39,7 @@ public class TizenToolsPreferencePage extends PreferencePage implements IWorkben
     }
     @Override
     public void init(IWorkbench workbench) {
-    }   
+    }
 
     @Override
     protected Control createContents(Composite parent) {
index 587015d..13f71a3 100644 (file)
@@ -148,7 +148,7 @@ public class ConnectionExplorerInfoPropertyPages extends PropertyPage implements
                if (f.getType() == FileEntryType.RootDevice || 
                                f.getType() == FileEntryType.RootEmulator)      {
                        addRtSection(composite);
-               } else {                
+               } else {
                        addFirstSection(composite);
                        addSecondSection(composite);
                        addThirdSection(composite);
index 420f46e..94d7ea5 100755 (executable)
@@ -101,7 +101,7 @@ public class ConnectionExplorerPermissionPropertyPages extends PropertyPage {
                FileEntry f = (FileEntry) getElement().getAdapter(FileEntry.class);
                if ( f.getType() == FileEntryType.RootDevice || f.getType() == FileEntryType.RootEmulator) {
                        return composite;
-               }       
+               }
                createTable(composite);
                addFirstSection(composite);
                addSeparator(composite);
index 1edf19e..39c6cbe 100644 (file)
@@ -68,7 +68,7 @@ public class FileEntryTransfer extends ByteArrayTransfer {
                                FileEntry data = entries[i];
                                if (data instanceof FileEntry) {
                                        try {
-                                               out.writeUTF(((FileEntry) data).getFullPath());                                         
+                                               out.writeUTF(((FileEntry) data).getFullPath());
                                        } catch (IOException e1) {
                                                // TODO Auto-generated catch block
                                                e1.printStackTrace();
index d54d297..2ca3166 100755 (executable)
@@ -76,7 +76,7 @@ public class TizenRemoteFileLabelProvider implements ITableLabelProvider {
                                default:
                                        return mOtherImage;
                                }
-                       } 
+                       }
                        // default case return a different image.
                        return mOtherImage;
                }
index faa78c9..9e717e2 100644 (file)
@@ -52,7 +52,7 @@ public class PackageActionProvider extends CommonActionProvider {
     
     class OpenAction extends Action {
         private StructuredViewer viewer;
-        private ISelectionProvider provider; 
+        private ISelectionProvider provider;
 
         public OpenAction(StructuredViewer viewer, ISelectionProvider selectionProvider) {
             this.viewer = viewer;
@@ -67,7 +67,7 @@ public class PackageActionProvider extends CommonActionProvider {
             return false;
         }
 
-        public void run() { 
+        public void run() {
             ISelection selection = provider.getSelection();
             if (selection != null && selection instanceof IStructuredSelection)
                 expand(((IStructuredSelection) selection).getFirstElement());
index 1ea97a5..4d882b4 100644 (file)
@@ -44,7 +44,7 @@ public class GomContentProvider implements ITreeContentProvider{
         if (inputElement instanceof IProject[]) {
             IProject[] projects = (IProject[])inputElement;
             return projects;
-            } 
+        }
         return null;
     }
 
index 78bc227..65deaaf 100644 (file)
@@ -379,7 +379,7 @@ public class GomDialog extends TitleAreaDialog{
         setShortcutCombo();
     }
     
-    private void setModeCombo() { 
+    private void setModeCombo() {
         if(!ProjectUtil.isTizenNativeProject((project))) {
             btnMode[2].setVisible(false);
             btnMode[2].setSelection(false);
index f96f110..170a9c3 100644 (file)
@@ -264,7 +264,7 @@ implements IDevice
        final String path
     )
     {
-        return getCommonFileEntry(FilenameUtil.getCanonicalFragments( path ));  
+        return getCommonFileEntry(FilenameUtil.getCanonicalFragments( path ));
     }
     
     /* (non-Javadoc)
index e9a7185..d6e9fe6 100755 (executable)
@@ -52,7 +52,7 @@ public class SdbHelper {
     public static final int WAIT_TIME = 50; // spin-wait sleep, in ms
 
     public static final String DEFAULT_ENCODING = "ISO-8859-1"; //$NON-NLS-1$
-    public static final String UTF_DECODING = "UTF-8"; 
+    public static final String UTF_DECODING = "UTF-8";
     public static final String OUTPUT_DECODING = UTF_DECODING;
     
        public static final Charset UTF_CHARSET = Charset.forName( OUTPUT_DECODING );
index 808bd8b..7c22647 100644 (file)
@@ -69,7 +69,7 @@ public class DlogBriefParser implements IDlogParser {
 
                 infos.add(info);
             }
-        } 
+        }
 
         return infos.toArray(new DlogInfo[0]);
     }
index 032a7c4..07e9b40 100644 (file)
@@ -76,7 +76,7 @@ public class DlogLongParser implements IDlogParser {
                 }
                 info.setCommand(line.replaceAll("\t", "    "));
             }
-        } 
+        }
 
         return infos.toArray(new DlogInfo[0]);
     }
index 1863dc5..a30c4d0 100644 (file)
@@ -608,7 +608,7 @@ public class ArrayUtil
                {
                        if ( ObjectUtil.equals( candidate, element ) )
                        {
-                               return true; 
+                               return true;
                        }
                }
                return false;
index 9d2bc91..e1f7c1d 100644 (file)
@@ -323,9 +323,9 @@ Assert
        {
                if( StringUtil.hasLength( text ) )
                {
-                       return ; 
+                       return ;
                }
-               fail( msg ); 
+               fail( msg );
        }
        /**
         * Assert that <code>text</code> has any readible character
@@ -369,9 +369,9 @@ Assert
        {
                if ( StringUtil.hasText( text ) )
                {
-                       return ; 
+                       return ;
                }
-               fail( message ); 
+               fail( message );
        }
 
        /**
@@ -418,7 +418,7 @@ Assert
        )
        {
                if ( !StringUtil.hasLength( textToSearch ) )
-               { 
+               {
                        return ;
                }
                
@@ -603,7 +603,7 @@ Assert
                            continue;
                        }
                        
-                       fail( msg ); 
+                       fail( msg );
                }
        }
 
@@ -649,9 +649,9 @@ Assert
        {
                if( !CollectionUtil.isEmpty( collection ) )
                {
-                       return ; 
+                       return ;
                }
-               fail( msg ); 
+               fail( msg );
        }
 
        /**
@@ -696,9 +696,9 @@ Assert
        {
                if ( !MapUtil.isEmpty( map ) )
                {
-                       return ; 
+                       return ;
                }
-               fail( msg ); 
+               fail( msg );
        }
 
        /**
@@ -746,7 +746,7 @@ Assert
                notNull( type, "Type to check against must not be null" );
                if( type.isInstance( obj ) )
                {
-                       return ; 
+                       return ;
                }
                
                fail( MessageFormat.format(
index 1e34d6f..e7c4f8d 100644 (file)
@@ -439,7 +439,7 @@ CollectionUtil
             final Object candidate = iterator.next();
             if ( ObjectUtil.equals( candidate, element ) ) 
             {
-                return true; 
+                return true;
             }
         }
         return false;
@@ -469,7 +469,7 @@ CollectionUtil
             final Object candidate = enumeration.nextElement();
             if ( ObjectUtil.equals( candidate, element ) )
             {
-                return true; 
+                return true;
             }
         }
         return false;
@@ -500,7 +500,7 @@ CollectionUtil
         {
             if ( ObjectUtil.equals( candidate, element ) )
             {
-                return true; 
+                return true;
             }
         }
         return false;
@@ -523,14 +523,14 @@ CollectionUtil
     {
         if ( isEmpty( source ) || isEmpty( candidates) )
         {
-            return false; 
+            return false;
         }
 
         for ( final Object candidate : candidates )
         {
             if ( source.contains( candidate ) )
             {
-                return true; 
+                return true;
             }
         }
         return false;
@@ -541,7 +541,7 @@ CollectionUtil
      * 
      * @param collectionType type to check
      * 
-     * @return <code>true</code> if <code>collectionType</code> is in {@link #APPROXIMABLE_COLLECTION_TYPES} 
+     * @return <code>true</code> if <code>collectionType</code> is in {@link #APPROXIMABLE_COLLECTION_TYPES}
      * 
      * @see #APPROXIMABLE_COLLECTION_TYPES
      */
@@ -559,7 +559,7 @@ CollectionUtil
      * 
      * @param mapType type to check
      * 
-     * @return <code>true</code> if <code>mapType</code> is in {@link #APPROXIMABLE_MAP_TYPES} 
+     * @return <code>true</code> if <code>mapType</code> is in {@link #APPROXIMABLE_MAP_TYPES}
      * 
      * @see #APPROXIMABLE_MAP_TYPES
      */
@@ -661,7 +661,7 @@ CollectionUtil
             
             if ( 0 == length )
             {
-                return EMPTY_ARRAY; 
+                return EMPTY_ARRAY;
             }
             
             final StringBuilder buffer= new StringBuilder();
@@ -696,7 +696,7 @@ CollectionUtil
         final String separator
     )
     {
-        return concatenate( (null==array)?null:new ArrayIterator<E>( array ), separator ); 
+        return concatenate( (null==array)?null:new ArrayIterator<E>( array ), separator );
     }
         
     /**
@@ -714,7 +714,7 @@ CollectionUtil
         final String separator
     )
     {
-        return concatenate( (null==col)?(null):col.iterator(), separator ); 
+        return concatenate( (null==col)?(null):col.iterator(), separator );
     }
     
     /**
@@ -739,7 +739,7 @@ CollectionUtil
         
         if ( !iter.hasNext() )
         {
-            return EMPTY_ARRAY; 
+            return EMPTY_ARRAY;
         }
         
         final StringBuilder buffer= new StringBuilder();
index a665c6b..8166b1b 100644 (file)
@@ -103,7 +103,7 @@ public class ObjectUtil {
      *  }
      * } else if ( obj1.equals( obj2 ) ) {
      *      ...
-     * } 
+     * }
      * </pre>
      * If you use this method 
      * <pre>
index ab69b49..4cf7316 100644 (file)
@@ -96,7 +96,7 @@ public class Certification {
                final Prompter prompter
        )
        {
-               this.prompter = prompter; 
+               this.prompter = prompter;
        }
        
        protected Prompter getPrompter()
@@ -261,7 +261,7 @@ public class Certification {
                        + " " + notBefore + " " + UIMessages.getString( "org.tizen.common.sign.certificatevaliditymessage3") //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
                        + " " + notAfter; //$NON-NLS-1$
                        throw new ComplicatedCertificationException(detailsText);
-               } 
+               }
        }
 
 
index 3e943bd..42be246 100644 (file)
@@ -59,7 +59,7 @@ public class SigningProfile {
             // <Distributor ordinal number, Profile item>.
     
     public final static int AUTHOR_ORDINAL = 0; // If the ordinal number is zero, this is an author
-    public final static int MAX_DISTRIBUTOR = 2; 
+    public final static int MAX_DISTRIBUTOR = 2;
     
     public final static int NOTHING = -1;
     
index 0954649..d57b457 100644 (file)
@@ -114,7 +114,7 @@ public class ProfileItemDialog extends StatusDialog {
         createTextWithBrowse( composite, ItemDataKey.caPath, filterExt_cer, this.bEnableCA );
         createTextWithBrowse( composite, ItemDataKey.rootCaPath, filterExt_cer, this.bEnableCA );
         
-        return composite; 
+        return composite;
     }
     
     protected Composite createPasswordText(Composite parent, final ItemDataKey key) {
index a23bb1e..1cfd3d8 100644 (file)
@@ -76,7 +76,7 @@ public class StatusBar extends AbstractWorkbenchTrimWidget implements SubmitList
     private TextAssist fTxtAssist;\r
     private CommandLauncher fCommandLauncher;\r
 \r
-    Label fAssistant = null; \r
+    Label fAssistant = null;\r
     AssistantBubble fBubble = null;\r
 \r
     // You can use just an object<->xml serialization library like java.beans.XMLEncoder or XStream.\r
index 03483c4..98dd6a7 100644 (file)
@@ -41,7 +41,7 @@ import org.tizen.common.ui.Activator;
 public class AssistantBubble {\r
     Control parent;\r
     //ToolTip tip;\r
-    BalloonWindow balloon; \r
+    BalloonWindow balloon;\r
     String text, message;\r
     OrderProcessor orderProcessor;\r
 \r
index f9c0b65..d6961f5 100644 (file)
@@ -205,7 +205,7 @@ extends CommonTemplate
                     final String localeStr = name.substring( "messages_".length(), name.length() - ".properties".length() );
                     final String[] fragments = StringUtil.split( localeStr, "_" );
                     final String lang = pickupFirst( fragments );
-                    final String country = (2==fragments.length)?fragments[1]:""; 
+                    final String country = (2==fragments.length)?fragments[1]:"";
 
                     Locale locale = new Locale( lang, country );
                     in = getInputStream( file );
@@ -328,7 +328,7 @@ extends CommonTemplate
 
                 if ( copyFilter.accept( "/", (OSChecker.isWindows() ? name.replace( System.getProperty("file.separator"), "/" ) : name) ) )
                 {
-                    logger.debug( "{} is copy target", name ); 
+                    logger.debug( "{} is copy target", name );
                     this.copyNames.add( name );
                     continue;
                 }
index 6660660..b5791c0 100755 (executable)
@@ -133,7 +133,7 @@ extends CommonTemplate
                 final String localeStr = name.substring( "META-INF/messages_".length(), name.length() - ".properties".length() );\r
                 final String[] fragments = StringUtil.split( localeStr, "_" );\r
                 final String lang = pickupFirst( fragments );\r
-                final String country = (2==fragments.length)?fragments[1]:""; \r
+                final String country = (2==fragments.length)?fragments[1]:"";\r
                 \r
                 Locale locale = new Locale( lang, country );\r
                 final ResourceBundle bundle = new PropertyResourceBundle( jarIn );\r
index 39132b3..fe7e2f8 100644 (file)
@@ -68,7 +68,7 @@ extends AbstractTestCase
     {
         TestTemplateModelProvider modelProvider = new TestTemplateModelProvider();
         TemplateContext.getInstance().setModelProvider( modelProvider );
-        modelProvider.getContext().setValue("id", "web-ui-fw"); // it's mock to "CreateTemplate.java - ExecutionContext.getCurrentContext().setValue( "id", name ); 
+        modelProvider.getContext().setValue("id", "web-ui-fw"); // it's mock to "CreateTemplate.java - ExecutionContext.getCurrentContext().setValue( "id", name );
 
         final DirectoryRealm realm = new DirectoryRealm() {
             @Override
index b50357a..2f0ad4e 100755 (executable)
@@ -61,7 +61,7 @@ extends AbstractTestCase
     {\r
         TestTemplateModelProvider modelProvider = new TestTemplateModelProvider();\r
         TemplateContext.getInstance().setModelProvider( modelProvider );\r
-        modelProvider.getContext().setValue("id", "simple-template"); // it's mock to "CreateTemplate.java - ExecutionContext.getCurrentContext().setValue( "id", name ); \r
+        modelProvider.getContext().setValue("id", "simple-template"); // it's mock to "CreateTemplate.java - ExecutionContext.getCurrentContext().setValue( "id", name );\r
 \r
         final JarRealm realm = new JarRealm();\r
         final Map<?, ?> attrs = MapUtil.asMap( new Object[][] {\r
index 9595dcb..a30e36f 100755 (executable)
@@ -93,7 +93,7 @@ ExpressionParser
             final HashMap<String, String> var2val = new HashMap<String, String>();\r
             while ( 0 <= ( ch = reader.read() ) )\r
             {\r
-                switch ( status ) { \r
+                switch ( status ) {\r
                 case ST_EXP:\r
                     if ( CH_VAR == ch )\r
                     {\r
index 8710cd3..b5f0601 100755 (executable)
@@ -48,8 +48,8 @@ public class UpdateManager implements IStartup {
        private static final String EXECUTE_INSTALLER_UPDATE_COMMAND = "java -jar InstallManagerV2.jar";
        private static final String OLD_EXECUTE_INSTALLER_COMMAND = "java -jar InstallManager.jar";
        private static final String EXECUTE_INSTALLER_COMMAND = "inst-manager.bin";
-       private static final String OLD_EXECUTE_INSTALLER_COMMAND_FOR_WINDOWS = "InstManager.exe"; 
-       private static final String EXECUTE_INSTALLER_COMMAND_FOR_WINDOWS = "inst-manager.exe"; 
+       private static final String OLD_EXECUTE_INSTALLER_COMMAND_FOR_WINDOWS = "InstManager.exe";
+       private static final String EXECUTE_INSTALLER_COMMAND_FOR_WINDOWS = "inst-manager.exe";
        private static final String UPDATE_LIST_CHECK_COMMAND = "%s -checkPackageUpdate";
        private static final String RESULT_VALUE_OF_UPDATABLE = "updatable";
        private static final String SDK_INFO_FILE = "sdk.info";
@@ -175,7 +175,7 @@ public class UpdateManager implements IStartup {
 
                if ( isSupportMultipleSDK ) {
                        return String.format(UPDATE_LIST_CHECK_COMMAND, EXECUTE_INSTALLER_UPDATE_COMMAND);
-               } 
+               }
                else {
                        return String.format(UPDATE_LIST_CHECK_COMMAND, OLD_EXECUTE_INSTALLER_UPDATE_COMMAND);
                }
index 4fdfba5..ca278e8 100644 (file)
@@ -60,7 +60,7 @@ extends AbstractCommand<Object>
        )
        {
                addCommand( commands );
-       } 
+       }
        
        /**
         * Add {@link Command} to {@link Command}s to execute 
index 96efcd6..a90f144 100755 (executable)
@@ -137,7 +137,7 @@ ExecutionContext
        /**
         * Return {@link Prompter} to be using
         * 
-        * @return {@link Prompter} 
+        * @return {@link Prompter}
         */
        public
        Prompter
index 9902d6a..d0819e7 100644 (file)
@@ -41,7 +41,7 @@ extends FileHandlingCommand<Boolean>
        public WriteFileCommand( final String path, final byte[] contents )
        {
                setPath( path );
-               this.contents = contents; 
+               this.contents = contents;
        }
        
        @Override
index bf692b6..c2bb5fe 100644 (file)
@@ -76,7 +76,7 @@ public class DynamicDialog extends Dialog {
     protected int width = 500; // default. This is fixed currently. 
     
     protected Text errorMessageText;
-    protected String errorMessage; 
+    protected String errorMessage;
     
     // input fields
     protected Collection<UserField> fields;
index 4dd0e81..6cff28a 100755 (executable)
@@ -36,25 +36,25 @@ import org.eclipse.swt.graphics.Color;
 import org.tizen.common.util.MapUtil;
 
 public class AnsicodeAdapter {
-       public static final char ESCAPE = '\033'; // ANSI Escape Character that starts commands
-       
-       public static final Color BLACK = new Color(getDisplay(), 0, 0, 0);                             //Display.getCurrent().getSystemColor(SWT.COLOR_BLACK);
-       public static final Color RED = new Color(getDisplay(), 255, 0, 0);                             //Display.getCurrent().getSystemColor(SWT.COLOR_RED);
-       public static final Color GREEN = new Color(getDisplay(), 0, 255, 0);                   //Display.getCurrent().getSystemColor(SWT.COLOR_GREEN);
-       public static final Color YELLOW = new Color(getDisplay(), 255, 255, 0);                //Display.getCurrent().getSystemColor(SWT.COLOR_YELLOW);
-       public static final Color BLUE = new Color(getDisplay(), 0,0,255);                              //Display.getCurrent().getSystemColor(SWT.COLOR_BLUE);
-       public static final Color MAGENTA = new Color(getDisplay(), 255, 0, 255);       //Display.getCurrent().getSystemColor(SWT.COLOR_MAGENTA);
-       public static final Color CYAN = new Color(getDisplay(), 0,255, 255);                   //Display.getCurrent().getSystemColor(SWT.COLOR_CYAN);
-       public static final Color WHITE = new Color(getDisplay(), 255, 255, 255);       //Display.getCurrent().getSystemColor(SWT.COLOR_WHITE);
-       
-       public static final Color INTENSE_BLACK = new Color(getDisplay(), 0, 0, 0);     //Display.getCurrent().getSystemColor(SWT.COLOR_DARK_GRAY);
-       public static final Color INTENSE_RED = new Color(getDisplay(), 139, 0, 0);     //Display.getCurrent().getSystemColor(SWT.COLOR_DARK_RED);
-       public static final Color INTENSE_GREEN = new Color(getDisplay(), 0, 100, 0);//Display.getCurrent().getSystemColor(SWT.COLOR_DARK_GREEN);
-       public static final Color INTENSE_YELLOW = new Color(getDisplay(), 250,250,210);//Display.getCurrent().getSystemColor(SWT.COLOR_DARK_YELLOW);
-       public static final Color INTENSE_BLUE = new Color(getDisplay(), 0,0,139);//Display.getCurrent().getSystemColor(SWT.COLOR_DARK_BLUE);
-       public static final Color INTENSE_MAGENTA = new Color(getDisplay(), 139,0,139);//Display.getCurrent().getSystemColor(SWT.COLOR_DARK_MAGENTA);
-       public static final Color INTENSE_CYAN = new Color(getDisplay(), 0, 139, 139);//Display.getCurrent().getSystemColor(SWT.COLOR_DARK_CYAN);
-       public static final Color INTENSE_WHITE = new Color(getDisplay(), 245, 245, 245);//Display.getCurrent().getSystemColor(SWT.COLOR_WHITE);
+    public static final char ESCAPE = '\033'; // ANSI Escape Character that starts commands
+    
+    public static final Color BLACK = new Color(getDisplay(), 0, 0, 0);                //Display.getCurrent().getSystemColor(SWT.COLOR_BLACK);
+    public static final Color RED = new Color(getDisplay(), 255, 0, 0);                //Display.getCurrent().getSystemColor(SWT.COLOR_RED);
+    public static final Color GREEN = new Color(getDisplay(), 0, 255, 0);            //Display.getCurrent().getSystemColor(SWT.COLOR_GREEN);
+    public static final Color YELLOW = new Color(getDisplay(), 255, 255, 0);        //Display.getCurrent().getSystemColor(SWT.COLOR_YELLOW);
+    public static final Color BLUE = new Color(getDisplay(), 0,0,255);                //Display.getCurrent().getSystemColor(SWT.COLOR_BLUE);
+    public static final Color MAGENTA = new Color(getDisplay(), 255, 0, 255);    //Display.getCurrent().getSystemColor(SWT.COLOR_MAGENTA);
+    public static final Color CYAN = new Color(getDisplay(), 0,255, 255);            //Display.getCurrent().getSystemColor(SWT.COLOR_CYAN);
+    public static final Color WHITE = new Color(getDisplay(), 255, 255, 255);    //Display.getCurrent().getSystemColor(SWT.COLOR_WHITE);
+    
+    public static final Color INTENSE_BLACK = new Color(getDisplay(), 0, 0, 0);    //Display.getCurrent().getSystemColor(SWT.COLOR_DARK_GRAY);
+    public static final Color INTENSE_RED = new Color(getDisplay(), 139, 0, 0);    //Display.getCurrent().getSystemColor(SWT.COLOR_DARK_RED);
+    public static final Color INTENSE_GREEN = new Color(getDisplay(), 0, 100, 0);//Display.getCurrent().getSystemColor(SWT.COLOR_DARK_GREEN);
+    public static final Color INTENSE_YELLOW = new Color(getDisplay(), 250,250,210);//Display.getCurrent().getSystemColor(SWT.COLOR_DARK_YELLOW);
+    public static final Color INTENSE_BLUE = new Color(getDisplay(), 0,0,139);//Display.getCurrent().getSystemColor(SWT.COLOR_DARK_BLUE);
+    public static final Color INTENSE_MAGENTA = new Color(getDisplay(), 139,0,139);//Display.getCurrent().getSystemColor(SWT.COLOR_DARK_MAGENTA);
+    public static final Color INTENSE_CYAN = new Color(getDisplay(), 0, 139, 139);//Display.getCurrent().getSystemColor(SWT.COLOR_DARK_CYAN);
+    public static final Color INTENSE_WHITE = new Color(getDisplay(), 245, 245, 245);//Display.getCurrent().getSystemColor(SWT.COLOR_WHITE);
 
     public static final Map<Integer, Color[]> CODE2COLOR = Collections.unmodifiableMap( MapUtil.<Integer, Color[]>asMap( new Object[][] {
         new Object[] { 30, new Color[] { INTENSE_BLACK, BLACK } },
@@ -75,79 +75,75 @@ public class AnsicodeAdapter {
         new Object[] { 47, new Color[] { INTENSE_WHITE, WHITE } },
     } ) );
 
-       private static int[] commands = {'m','n'}; //SGR , DSR 
-       
-       private static List<TextStyle> parseAnsiString(String ansiString) {
-               char command = 0;
-               List<TextStyle> styles = new ArrayList<TextStyle>();
-               int arrayIndex = 0;
-               StringBuilder sb = new StringBuilder();
-               
-               for (int i=0; i<ansiString.length(); i++) {                     
-               if (ansiString.charAt(i) == ESCAPE) {
-                       int min = ansiString.length() - 1;
-                       int startCommand = 0;
-                       
-                       for (int j=0 ; j<commands.length ; j++) {
-                               startCommand = ansiString.indexOf(commands[j], i);
-                               if (min > startCommand && startCommand > -1) {
-                                       min = startCommand;
-                               }
-                       }
-                               command=ansiString.charAt(min);
-                       startCommand=min;
-                       
-                       if ( startCommand < ansiString.length()) {
-                               
-                               String colorCodes = ansiString.substring(i+2,startCommand); 
-                               String codes[] = colorCodes.split(";");
-                               Color[] colors = getColorAttribute(codes);
-                               int styleStart = startCommand+1;
-                               int styleEnd = 0;
-                               int endEscape = ansiString.indexOf(ESCAPE,styleStart);
-                               if (endEscape < 0 ) {
-                                       styleEnd = ansiString.length();
-                                       i = ansiString.length();
-                               } else {
-                                       int endCommand = ansiString.indexOf(command,endEscape); 
-                                       if (endCommand < 0 ) {
-                                               styleEnd = ansiString.length();
-                                               i = ansiString.length();
-                                       } else {
-                                               styleEnd = endEscape;
-                                               i = endCommand;
-                                       }       
-                               }
-                               String styleString = null;
-                               styleString = ansiString.substring(styleStart, styleEnd);
-                               
-                               TextStyle styleTs = new TextStyle(colors[0],colors[1],styleString);         
-
-                               if (sb.length() > 0) {
-                                       TextStyle defaultTs = new TextStyle(BLACK,WHITE, sb.toString());                                
-                                       styles.add(arrayIndex++,defaultTs);
-                                       sb.setLength(0);
-                               }
-                               styles.add(arrayIndex++,styleTs);                                       
+    private static int[] commands = {'m','n'}; //SGR, DSR
+    
+    private static List<TextStyle> parseAnsiString(String ansiString) {
+        char command = 0;
+        List<TextStyle> styles = new ArrayList<TextStyle>();
+        int arrayIndex = 0;
+        StringBuilder sb = new StringBuilder();
+        
+        for (int i=0; i<ansiString.length(); i++) {
+            if (ansiString.charAt(i) == ESCAPE) {
+                int min = ansiString.length() - 1;
+                int startCommand = 0;
+                
+                for (int j=0 ; j<commands.length ; j++) {
+                    startCommand = ansiString.indexOf(commands[j], i);
+                    if (min > startCommand && startCommand > -1) {
+                        min = startCommand;
+                    }
+                }
+                command=ansiString.charAt(min);
+                startCommand=min;
+                
+                if ( startCommand < ansiString.length()) {
+                    String colorCodes = ansiString.substring(i+2,startCommand);
+                    String codes[] = colorCodes.split(";");
+                    Color[] colors = getColorAttribute(codes);
+                    int styleStart = startCommand+1;
+                    int styleEnd = 0;
+                    int endEscape = ansiString.indexOf(ESCAPE,styleStart);
+                    if (endEscape < 0 ) {
+                        styleEnd = ansiString.length();
+                        i = ansiString.length();
+                    } else {
+                        int endCommand = ansiString.indexOf(command,endEscape);
+                        if (endCommand < 0 ) {
+                            styleEnd = ansiString.length();
+                            i = ansiString.length();
+                        } else {
+                            styleEnd = endEscape;
+                            i = endCommand;
+                        }
+                    }
+                    String styleString = null;
+                    styleString = ansiString.substring(styleStart, styleEnd);
+                    
+                    TextStyle styleTs = new TextStyle(colors[0],colors[1],styleString);
 
-                   }                   
-               }else { //nothing found! 
-                       
-                       sb.append(ansiString.charAt(i));
-               }               
-       }
-               if (sb.length() > 0) {
-                       TextStyle defaultTs = new TextStyle(BLACK,WHITE, sb.toString());                                
-                       styles.add(arrayIndex,defaultTs);
-               }
-               return styles;
-       }
-       private static Color[] getColorAttribute(String codes[]) {
-               boolean brighter = false;
-               Color[] color = {BLACK,WHITE}; //foreground&background
-       
+                    if (sb.length() > 0) {
+                        TextStyle defaultTs = new TextStyle(BLACK,WHITE, sb.toString());
+                        styles.add(arrayIndex++,defaultTs);
+                        sb.setLength(0);
+                    }
+                    styles.add(arrayIndex++,styleTs);
+                }
+            } else { //nothing found! 
+                sb.append(ansiString.charAt(i));
+            }
+        }
+        if (sb.length() > 0) {
+            TextStyle defaultTs = new TextStyle(BLACK, WHITE, sb.toString());
+            styles.add(arrayIndex,defaultTs);
+        }
+        return styles;
+    }
+    private static Color[] getColorAttribute(String codes[]) {
+        boolean brighter = false;
+        Color[] color = {BLACK,WHITE}; //foreground&background
+    
         for (int j = 0; j < codes.length; j++) {
-               
             if (codes[j].length() > 0 && codes[j].matches("[\\d]*")) {
                 int code = Integer.parseInt(codes[j]);
                 if (code == 0)
@@ -161,51 +157,52 @@ public class AnsicodeAdapter {
                 else if (code >= 30 && code <= 39) {
                     if (code == 39)
                     {
-                       color[0] = BLACK; //default foreground color
+                        color[0] = BLACK; //default foreground color
                     }
                     else if (code >= 30 && code <= 37) {
-                       color[0] = getColorFromANSICode(code, brighter);
+                        color[0] = getColorFromANSICode(code, brighter);
                         brighter = false;
                     }
-                } else if (code >= 40 && code <= 49) {
+                }
+                else if (code >= 40 && code <= 49) {
                     if (code == 49)
                     {
-                       color[1] = WHITE; //default background color
+                        color[1] = WHITE; //default background color
                     }
                     else if (code >= 40 && code <= 47)
                     {
-                       color[1] = getColorFromANSICode(code, brighter);
+                        color[1] = getColorFromANSICode(code, brighter);
                     }
                 }
             }
         }
         return color;
-       }
-       
-           
+    }
+
+    private static Color getColorFromANSICode(int code, boolean brighter) {
+        final Color[] colorSet = CODE2COLOR.get( code );
+        if ( null == colorSet )
+        {
+            return null;
+        }
+        return colorSet[brighter?0:1];
+    }
+
+    public static String getStripAnsiString(String newLineStr) {
+        List<TextStyle> styles = parseAnsiString(newLineStr);
+        if (styles != null) {
+            StringBuilder sb = new StringBuilder();
+            for (int i=0 ; i<styles.size(); i++) {
+                sb.append(styles.get(i).getStripString());
+            }
+            return sb.toString();
+        } else {
+            return newLineStr;
+        }
+    }
 
-       private static Color getColorFromANSICode(int code, boolean brighter) {
-           final Color[] colorSet = CODE2COLOR.get( code );
-           if ( null == colorSet )
-           {
-               return null;
-           }
-           return colorSet[brighter?0:1];
+    public static List<TextStyle> getStringStyles(String newLineStr) {
+        List<TextStyle> styles = parseAnsiString(newLineStr);
+        return styles;
     }
-       public static String getStripAnsiString(String newLineStr) {
-               List<TextStyle> styles = parseAnsiString(newLineStr);           
-               if (styles != null) {
-                       StringBuilder sb = new StringBuilder();
-                       for (int i=0 ; i<styles.size(); i++) {
-                               sb.append(styles.get(i).getStripString());
-                       }
-                       return sb.toString();
-               }else {
-                       return newLineStr;
-               }
-       }
-       public static List<TextStyle> getStringStyles(String newLineStr) {
-               List<TextStyle> styles = parseAnsiString(newLineStr);
-               return styles;
-       }
 }
index ebdecc7..bc375be 100755 (executable)
@@ -392,7 +392,7 @@ implements ITizenConsoleManager, IHyperlinkManager
                                        }
                                }
                        }
-               );      
+               );
        }
        
        /* (non-Javadoc)
index de074f5..6da3877 100755 (executable)
@@ -480,12 +480,12 @@ public class ArrayUtil
     {
         if ( source instanceof Object[] )
         {
-            return ( Object[] )source; 
+            return ( Object[] )source;
         }
 
         if ( null == source )
         {
-            return EMPTY_OBJECT_ARRAY; 
+            return EMPTY_OBJECT_ARRAY;
         }
         
         if ( !source.getClass().isArray() )
@@ -496,7 +496,7 @@ public class ArrayUtil
         final int length = Array.getLength( source );
         if ( 0 == length )
         {
-            return EMPTY_OBJECT_ARRAY; 
+            return EMPTY_OBJECT_ARRAY;
         }
         
         Class<?> wrapperType = null;
@@ -952,7 +952,7 @@ public class ArrayUtil
         {
             if ( ObjectUtil.equals( candidate, element ) )
             {
-                return true; 
+                return true;
             }
         }
         return false;
index 49292e0..cea35fd 100755 (executable)
@@ -322,9 +322,9 @@ Assert
        {
                if( StringUtil.hasLength( text ) )
                {
-                       return ; 
+                       return ;
                }
-               fail( msg ); 
+               fail( msg );
        }
        /**
         * Assert that <code>text</code> has any readible character
@@ -368,9 +368,9 @@ Assert
        {
                if ( StringUtil.hasText( text ) )
                {
-                       return ; 
+                       return ;
                }
-               fail( message ); 
+               fail( message );
        }
 
        /**
@@ -417,7 +417,7 @@ Assert
        )
        {
                if ( !StringUtil.hasLength( textToSearch ) )
-               { 
+               {
                        return ;
                }
                
@@ -602,7 +602,7 @@ Assert
                            continue;
                        }
                        
-                       fail( msg ); 
+                       fail( msg );
                }
        }
 
@@ -648,9 +648,9 @@ Assert
        {
                if( !CollectionUtil.isEmpty( collection ) )
                {
-                       return ; 
+                       return ;
                }
-               fail( msg ); 
+               fail( msg );
        }
 
        /**
@@ -695,9 +695,9 @@ Assert
        {
                if ( !MapUtil.isEmpty( map ) )
                {
-                       return ; 
+                       return ;
                }
-               fail( msg ); 
+               fail( msg );
        }
 
        /**
@@ -745,7 +745,7 @@ Assert
                notNull( type, "Type to check against must not be null" );
                if( type.isInstance( obj ) )
                {
-                       return ; 
+                       return ;
                }
                
                fail( MessageFormat.format(
index a3ff716..02d0216 100755 (executable)
@@ -243,7 +243,7 @@ CollectionMap<K, V>
                        bInit = true;
                        buffer.append( key );
                        buffer.append( '=' );
-                       buffer.append( map.get( key ) ); 
+                       buffer.append( map.get( key ) );
                }
 
                buffer.append( "]" );
index 0f6c0e9..3c6bbfd 100755 (executable)
@@ -648,7 +648,7 @@ public class CollectionUtil
             final Object candidate = iterator.next();
             if ( ObjectUtil.equals( candidate, element ) ) 
             {
-                return true; 
+                return true;
             }
         }
         return false;
@@ -678,7 +678,7 @@ public class CollectionUtil
             final Object candidate = enumeration.nextElement();
             if ( ObjectUtil.equals( candidate, element ) )
             {
-                return true; 
+                return true;
             }
         }
         return false;
@@ -709,7 +709,7 @@ public class CollectionUtil
         {
             if ( ObjectUtil.equals( candidate, element ) )
             {
-                return true; 
+                return true;
             }
         }
         return false;
@@ -732,14 +732,14 @@ public class CollectionUtil
     {
         if ( isEmpty( source ) || isEmpty( candidates) )
         {
-            return false; 
+            return false;
         }
 
         for ( final Object candidate : candidates )
         {
             if ( source.contains( candidate ) )
             {
-                return true; 
+                return true;
             }
         }
         return false;
@@ -750,7 +750,7 @@ public class CollectionUtil
      * 
      * @param collectionType type to check
      * 
-     * @return <code>true</code> if <code>collectionType</code> is in {@link #APPROXIMABLE_COLLECTION_TYPES} 
+     * @return <code>true</code> if <code>collectionType</code> is in {@link #APPROXIMABLE_COLLECTION_TYPES}
      * 
      * @see #APPROXIMABLE_COLLECTION_TYPES
      */
@@ -768,7 +768,7 @@ public class CollectionUtil
      * 
      * @param mapType type to check
      * 
-     * @return <code>true</code> if <code>mapType</code> is in {@link #APPROXIMABLE_MAP_TYPES} 
+     * @return <code>true</code> if <code>mapType</code> is in {@link #APPROXIMABLE_MAP_TYPES}
      * 
      * @see #APPROXIMABLE_MAP_TYPES
      */
@@ -870,7 +870,7 @@ public class CollectionUtil
             
             if ( 0 == length )
             {
-                return EMPTY_ARRAY; 
+                return EMPTY_ARRAY;
             }
             
             final StringBuilder buffer= new StringBuilder();
@@ -905,7 +905,7 @@ public class CollectionUtil
         final String separator
     )
     {
-        return concatenate( (null==array)?null:new ArrayIterator<E>( array ), separator ); 
+        return concatenate( (null==array)?null:new ArrayIterator<E>( array ), separator );
     }
         
     /**
@@ -923,7 +923,7 @@ public class CollectionUtil
         final String separator
     )
     {
-        return concatenate( (null==col)?(null):col.iterator(), separator ); 
+        return concatenate( (null==col)?(null):col.iterator(), separator );
     }
     
     /**
@@ -948,7 +948,7 @@ public class CollectionUtil
         
         if ( !iter.hasNext() )
         {
-            return EMPTY_ARRAY; 
+            return EMPTY_ARRAY;
         }
         
         final StringBuilder buffer= new StringBuilder();
index 66101f6..2542c57 100644 (file)
@@ -95,6 +95,7 @@ public abstract class DialogUtil {
         });
     }
 
+    private final static Object lockQuestion = new Object();
     /**
      * Open question dialog and return the selection of user.
      * 
@@ -103,7 +104,6 @@ public abstract class DialogUtil {
      * @return int if user select 'yes', return SWT.YES. if user select 'no',
      *         return SWT.NO.
      */
-    private final static Object lockQuestion = new Object(); 
     public static int openQuestionDialog(String message) {
         Shell activeShell = getActiveShell();
         return openQuestionDialog( activeShell, "Question", message );
index b5701b7..deb961f 100755 (executable)
@@ -609,7 +609,7 @@ public class FileUtil {
                 List<File> deeperList = getFileListing( file , pattern , recursive); // recursive call!
                 if ( null != deeperList ) {
                     result.addAll( deeperList );
-                } 
+                }
             }
         }
         
index 34bc8f2..9cc3658 100755 (executable)
@@ -133,7 +133,7 @@ public abstract class HostUtil{
         {
             logger.info( "Exception occurred:", e );
             return false;
-        } 
+        }
         return i == 0;
     }
 
@@ -164,12 +164,12 @@ public abstract class HostUtil{
             logger.info( "Exception occurred:", e );
             return false;
         }finally{
-        } 
+        }
         return true;
     }
 
     public static String returnExecute(String command, String workingDir) {
-        return returnExecute(command, workingDir, false);        
+        return returnExecute(command, workingDir, false);
     }
     
     public static String returnExecute(String command, String workingDir, boolean withError) {
@@ -187,7 +187,7 @@ public abstract class HostUtil{
 
         try {
             ProcessBuilder pb = new ProcessBuilder();
-            pb.redirectErrorStream(withError);            
+            pb.redirectErrorStream(withError);
             pb.command(fullCommand);
             if(workingDir != null) {
                 pb.directory(new File(workingDir));
index f42caca..1c070d7 100644 (file)
@@ -283,7 +283,7 @@ public class NotifierDialog {
                     bt.setImage(NotificationType.XBUTTON_PUSH.getImage());
                 } else if (SWT.MouseUp == event.type ) {
                     bt.setImage(NotificationType.XBUTTON_NORMAL.getImage());
-                    if ( shell != null ) { 
+                    if ( shell != null ) {
                         _activeShells.remove(shell);
                         shell.dispose();
 
index d880a8b..a57f796 100755 (executable)
@@ -102,7 +102,7 @@ public class ObjectUtil {
      *  }
      * } else if ( obj1.equals( obj2 ) ) {
      *      ...
-     * } 
+     * }
      * </pre>
      * If you use this method 
      * <pre>
index c36a71b..7f1b11e 100644 (file)
@@ -49,13 +49,13 @@ public class ProcessMonitorThread extends Thread {
        @Override
        /* TODO : Have to need code review soon*/
        public void run() {
-               this.hasMoreWork = true; 
+               this.hasMoreWork = true;
                
                while(hasMoreWork) {
                         if(monitor.isCanceled()) {
                                 if(proc != null) {
                                         proc.destroy();
-                                } 
+                                }
                                 monitor.setCanceled(false);
                                 monitor.done();
                                 hasMoreWork = false;
index adff598..22d7824 100644 (file)
@@ -111,7 +111,7 @@ public class ProjectUtil {
             if ( oldCommands == null ) { // if argument is Null both, return 0-based array
                 return new ICommand[0];
             } else {
-                return oldCommands; 
+                return oldCommands;
             }
         }
         
@@ -140,7 +140,7 @@ public class ProjectUtil {
         if ( commands != null ) {
             for (ICommand command : commands) {
                 String builderName = command.getBuilderName();
-                if ( builderName != null && builderName.equals( builderID ) )
+                if ( builderName != null && builderName.equals( builderID ) ) {
                     return command;
                 }
             }
index da25324..297fae0 100755 (executable)
@@ -53,7 +53,7 @@ public class StreamGobbler extends Thread
        {
                StringBuffer buffer = new StringBuffer();
                BufferedReader br = null;
-               try {           
+               try {
                        synchronized (synchronizer) {
                                br = new BufferedReader(new InputStreamReader(is));
                                String line;
index ec303fd..64d4aaf 100755 (executable)
@@ -77,7 +77,7 @@ public class FontCache {
                     break;\r
                 }\r
 \r
-                return of.getFont(); \r
+                return of.getFont();\r
             }\r
         }\r
         if (disposed) {\r
index 54f7da3..0908e89 100644 (file)
@@ -62,7 +62,7 @@ public class EclipseAppender extends AppenderSkeleton{
     public EclipseAppender(Layout layout) {
         super();
         this.setName(LoggerConstants.NAME_ECLIPSE_APPENDER);
-        setLayout(layout); 
+        setLayout(layout);
     }
     
     @Override
index da2b703..6ab2400 100755 (executable)
@@ -88,7 +88,7 @@ PreferenceTest
                try\r
                {\r
                        final Properties props = new Properties();\r
-                       props.load( in ); \r
+                       props.load( in );\r
 \r
                        assertEquals( null, Preference.getValue( "hello", null ) );\r
                        \r
index 39138d6..07dd834 100755 (executable)
@@ -68,7 +68,7 @@ public class HostUtilTest {
         String fullPath = "test_path";
         FileReader file = PowerMockito.mock( FileReader.class );
         whenNew( FileReader.class ).withParameterTypes( String.class ).withArguments( fullPath ).thenReturn( file );
-        Assert.notNull(HostUtil.getContents(fullPath));        
+        Assert.notNull(HostUtil.getContents(fullPath));
         
         whenNew( FileReader.class ).withParameterTypes( String.class ).withArguments( "nullPath" ).thenThrow( IOException.class );
         Assert.isNull(HostUtil.getContents("nullPath"));
@@ -165,6 +165,6 @@ public class HostUtilTest {
      */
     @Test(expected = Exception.class)
     public void test_executeWithConsole() throws Exception {
-        HostUtil.executeWithConsole("notcommand", "viewname");        
+        HostUtil.executeWithConsole("notcommand", "viewname");
     }
 }
index 4254e7f..1efcc6b 100644 (file)
@@ -151,7 +151,7 @@ public class IOUtilTest
        /**
         * Test {@link IOUtil#redirect(InputStream, OutputStream)},
         * {@link IOUtil#redirect(java.io.Reader, StringBuffer)},
-        * {@link IOUtil#redirect(java.io.Reader, StringBuilder)} 
+        * {@link IOUtil#redirect(java.io.Reader, StringBuilder)}
         * and {@link IOUtil#redirect(java.io.Reader, java.io.Writer)}
         * 
         * @throws Exception in case of failure in test
index c5c2c31..55e92d4 100644 (file)
@@ -138,7 +138,7 @@ public class BufferTest
                for ( final Object[] TEST_CASE : TEST_CASES )
                {
                        final int input = (Integer) TEST_CASE[0];
-                       final int[] expected = (int[]) TEST_CASE[1]; 
+                       final int[] expected = (int[]) TEST_CASE[1];
 
                        final Buffer buffer = new Buffer( bufferPool );
                        try