mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noël Rouvignac
25.55.2016 0569f3093648f7456aace953abc0e8a67fc8ec89
ConfigurationHandler.java: Pushed the whole if inside the try/catch
1 files modified
22 ■■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/config/ConfigurationHandler.java 22 ●●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/config/ConfigurationHandler.java
@@ -1456,9 +1456,10 @@
        continue;
      }
      int dashPos = name.indexOf('-', 7);
      if (dashPos < 0)
      try
      {
        try
        if (dashPos < 0)
        {
          ByteString ts = ByteString.valueOfUtf8(name.substring(7, dotPos));
          long timestamp = GeneralizedTimeSyntax.decodeGeneralizedTimeValue(ts);
@@ -1469,14 +1470,7 @@
            latestCounter = 0;
          }
        }
        catch (Exception e)
        {
          // Ignore.
        }
      }
      else
      {
        try
        else
        {
          ByteString ts = ByteString.valueOfUtf8(name.substring(7, dashPos));
          long timestamp = GeneralizedTimeSyntax.decodeGeneralizedTimeValue(ts);
@@ -1490,10 +1484,10 @@
            latestCounter = counter;
          }
        }
        catch (Exception e)
        {
          // Ignore.
        }
      }
      catch (Exception ignored)
      {
        // Ignore.
      }
    }