Changeset 2233

Show
Ignore:
Timestamp:
06/12/08 14:09:42 (4 months ago)
Author:
dsugar
Message:

cleanup

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/framework-plugin/src/com/tresys/framework/compiler/linkage/net/NetResource.java

    r2199 r2233  
    149149                if (AUTH_KEY_TYPE_MD5.equals (i_sAuthType)) 
    150150                { 
    151                         nLength = 20
     151                        nLength = 15
    152152                } 
    153153                else 
  • trunk/framework-plugin/src/com/tresys/framework/plugin/builder/FrameworkBuilder.java

    r2217 r2233  
    128128                                                String sName = currResource.getName (); 
    129129                                                sName = sName.substring (0, sName.length () - sExtn.length () -1); 
    130                                                 if (sys.getCustomModuleName ().equals (sName)) 
     130                                                if (sys != null && sys.getCustomModuleName ().equals (sName)) 
    131131                                                        m_buildSystems.add (sys); 
    132132                                        } 
  • trunk/framework-plugin/src/com/tresys/framework/plugin/editor/policy/PolicyDocumentProvider.java

    r1825 r2233  
    8282        public SELinuxSystem getSystem () 
    8383        { 
     84                if (m_currentFile == null) 
     85                return null; 
     86                 
    8487                FrameworkNature nat = FrameworkNature.getNature(m_currentFile.getProject()); 
    8588                if (nat == null) 
  • trunk/framework-plugin/src/com/tresys/framework/plugin/wizards/shape/NetworkResourceShapePropertyPage.java

    • Property svn:keywords set to Date Revision
    r2209 r2233  
    55|*|   
    66|*| $Rev$ 
    7 |*| $Date: 2008-05-21 15:17:37 -0400 (Wed, 21 May 2008)
     7|*| $Date
    88\*/ 
    99 
     
    243243                        modifyValue (s); 
    244244                         
    245                         if (s.trim ().equals ("")
     245                        if (s.trim ().length () == 0
    246246                                        updateStatus (this.errorMessage, false); 
    247247                         
     
    269269                        modifyValue (s); 
    270270                         
    271                         if (!this.required && s.equals ("")
     271                        if (!this.required && s.length () == 0
    272272                        { 
    273273                                updateStatus();                  
     
    306306                        modifyValue (s); 
    307307                         
    308                         if (s.equals ("")
     308                        if (s.length () == 0
    309309                        { 
    310310                                updateStatus();                  
     
    594594                        if ((getNetworkType().GetSysResourceState (SystemResourceTypes.ipsec) == SysResourceState.Yes || getNetworkType().GetSysResourceState (SystemResourceTypes.ipsec) == SysResourceState.Optional)) 
    595595                        { 
    596                                 if (this.localIPAddress.equals ("")
     596                                if (localIPAddress.length () == 0
    597597                                        super.updateStatus (Messages.NetworkResourcePropertyPage_bad_local_ip_address, false); 
    598598                        } 
     
    600600                        else if ((getNetworkType().GetSysResourceState (SystemResourceTypes.secmark) == SysResourceState.Yes || getNetworkType().GetSysResourceState (SystemResourceTypes.secmark) == SysResourceState.Optional)) 
    601601                        { 
    602                                 if (this.localDevice.equals("") && this.localIPAddress.equals ("")
     602                                if (localDevice.length () == 0 && localIPAddress.length () == 0
    603603                                        super.updateStatus (Messages.NetworkResourcePropertyPage_err_local_device_or_ip, false); 
    604604                        }                
  • trunk/framework-plugin/src/com/tresys/framework/plugin/wizards/shape/NetworkResourceShapePropertyWizard.java

    • Property svn:keywords set to Date Revision
    r2209 r2233  
    55|*|   
    66|*| $Rev$ 
    7 |*| $Date: 2008-05-21 15:17:37 -0400 (Wed, 21 May 2008)
     7|*| $Date
    88\*/ 
    99