ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gscok...@apache.org
Subject svn commit: r953143 - in /ant/ivy/core/trunk/src/java/org/apache/ivy: core/module/id/ModuleRevisionId.java plugins/parser/xml/XmlModuleDescriptorParser.java plugins/parser/xml/XmlModuleDescriptorUpdater.java
Date Wed, 09 Jun 2010 20:14:47 GMT
Author: gscokart
Date: Wed Jun  9 20:14:47 2010
New Revision: 953143

URL: http://svn.apache.org/viewvc?rev=953143&view=rev
Log:
remove ParenPadCheck checkstyle errors

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/id/ModuleRevisionId.java
    ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParser.java
    ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorUpdater.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/id/ModuleRevisionId.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/id/ModuleRevisionId.java?rev=953143&r1=953142&r2=953143&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/id/ModuleRevisionId.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/id/ModuleRevisionId.java Wed Jun
 9 20:14:47 2010
@@ -343,7 +343,7 @@ public class ModuleRevisionId extends Un
      * characters. Cfr. http://docs.codehaus.org/x/IGU
      */
     private static String normalizeRevision(String revision) {
-        if (revision.startsWith("[") && revision.endsWith("]") && revision.indexOf(',')
== -1 ) {
+        if (revision.startsWith("[") && revision.endsWith("]") && revision.indexOf(',')
== -1) {
             if (IvyPatternHelper.getTokenString(IvyPatternHelper.REVISION_KEY).equals(revision))
{
                 // this is the case when listing dynamic revions
                 return revision;

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParser.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParser.java?rev=953143&r1=953142&r2=953143&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParser.java
(original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorParser.java
Wed Jun  9 20:14:47 2010
@@ -498,7 +498,7 @@ public class XmlModuleDescriptorParser e
 
             descriptor.setStatus(mergeValue(parent.getStatus(), descriptor.getStatus()));
             if (descriptor.getNamespace() == null && parent instanceof DefaultModuleDescriptor)
{
-                Namespace parentNamespace = ( (DefaultModuleDescriptor) parent).getNamespace();
+                Namespace parentNamespace = ((DefaultModuleDescriptor) parent).getNamespace();
                 descriptor.setNamespace(parentNamespace);
             }
         }

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorUpdater.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorUpdater.java?rev=953143&r1=953142&r2=953143&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorUpdater.java
(original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorUpdater.java
Wed Jun  9 20:14:47 2010
@@ -679,7 +679,7 @@ public final class XmlModuleDescriptorUp
                 //TODO: should namespace be added to ModuleDescriptor interface, so we don't
                 // have to do this kind of check?
                 if (merged instanceof DefaultModuleDescriptor) {
-                    Namespace ns = ( (DefaultModuleDescriptor) merged).getNamespace();
+                    Namespace ns = ((DefaultModuleDescriptor) merged).getNamespace();
                     if (ns != null) {
                         namespace = ns.getName();
                     }



Mime
View raw message