directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smckin...@apache.org
Subject directory-fortress-commander git commit: FC-105 - [fortress-web] - use valueOf instead of new
Date Thu, 21 May 2015 13:34:15 GMT
Repository: directory-fortress-commander
Updated Branches:
  refs/heads/master 18fcf2c17 -> 92b4389fc


FC-105 - [fortress-web] - use valueOf instead of new


Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-commander/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-commander/commit/92b4389f
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-commander/tree/92b4389f
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-commander/diff/92b4389f

Branch: refs/heads/master
Commit: 92b4389fc42b67082968bd78314aefd1e950146c
Parents: 18fcf2c
Author: Shawn McKinney <smckinney@apache.org>
Authored: Thu May 21 08:34:08 2015 -0500
Committer: Shawn McKinney <smckinney@apache.org>
Committed: Thu May 21 08:34:08 2015 -0500

----------------------------------------------------------------------
 .../apache/directory/fortress/web/panel/ConstraintBasePanel.java | 4 ++--
 .../org/apache/directory/fortress/web/panel/ObjectListPanel.java | 2 +-
 .../org/apache/directory/fortress/web/panel/SDListPanel.java     | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-fortress-commander/blob/92b4389f/src/main/java/org/apache/directory/fortress/web/panel/ConstraintBasePanel.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/web/panel/ConstraintBasePanel.java
b/src/main/java/org/apache/directory/fortress/web/panel/ConstraintBasePanel.java
index 14d4baa..eb45b6d 100644
--- a/src/main/java/org/apache/directory/fortress/web/panel/ConstraintBasePanel.java
+++ b/src/main/java/org/apache/directory/fortress/web/panel/ConstraintBasePanel.java
@@ -365,8 +365,8 @@ public class ConstraintBasePanel extends FormComponentPanel
             Calendar calendar = Calendar.getInstance();
             try
             {
-                int hours = new Integer( szTime.substring( 0, 2 ) );
-                int minutes = new Integer( szTime.substring( 2, 4 ) );
+                int hours = Integer.valueOf( szTime.substring( 0, 2 ) );
+                int minutes = Integer.valueOf( szTime.substring( 2, 4 ) );
                 // zero hours convert to 24 for calendar:
                 if(hours == 0)
                 {

http://git-wip-us.apache.org/repos/asf/directory-fortress-commander/blob/92b4389f/src/main/java/org/apache/directory/fortress/web/panel/ObjectListPanel.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/web/panel/ObjectListPanel.java b/src/main/java/org/apache/directory/fortress/web/panel/ObjectListPanel.java
index c07ddc7..9c4f0b8 100644
--- a/src/main/java/org/apache/directory/fortress/web/panel/ObjectListPanel.java
+++ b/src/main/java/org/apache/directory/fortress/web/panel/ObjectListPanel.java
@@ -93,7 +93,7 @@ public class ObjectListPanel extends FormComponentPanel
         addGrid();
         radioGroup = new RadioGroup( "searchOptions", new PropertyModel( this, "selectedRadioButton"
) );
         add( radioGroup );
-        Radio objectRb = new Radio( "objectRb", new Model( new Character( NAMES ) ) );
+        Radio objectRb = new Radio( "objectRb", new Model( Character.valueOf( NAMES ) ) );
         radioGroup.add( objectRb );
         Radio ouRb = new Radio( "ouRb", new Model( new Character( OUS ) ) );
         radioGroup.add( ouRb );

http://git-wip-us.apache.org/repos/asf/directory-fortress-commander/blob/92b4389f/src/main/java/org/apache/directory/fortress/web/panel/SDListPanel.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/web/panel/SDListPanel.java b/src/main/java/org/apache/directory/fortress/web/panel/SDListPanel.java
index 149824a..27805b2 100644
--- a/src/main/java/org/apache/directory/fortress/web/panel/SDListPanel.java
+++ b/src/main/java/org/apache/directory/fortress/web/panel/SDListPanel.java
@@ -166,9 +166,9 @@ public class SDListPanel extends FormComponentPanel
 
         radioGroup = new RadioGroup( "searchOptions", new PropertyModel( this, "selectedRadioButton"
) );
         add( radioGroup );
-        Radio nameRb = new Radio( "nameRb", new Model( new Character( NAMES ) ) );
+        Radio nameRb = new Radio( "nameRb", new Model( Character.valueOf( NAMES ) ) );
         radioGroup.add( nameRb );
-        Radio roleRb = new Radio( "roleRb", new Model( new Character( ROLES ) ) );
+        Radio roleRb = new Radio( "roleRb", new Model( Character.valueOf( ROLES ) ) );
         radioGroup.add( roleRb );
         addRoleSearchModal( roleRb );
         radioGroup.setOutputMarkupId( true );


Mime
View raw message