ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gscok...@apache.org
Subject svn commit: r953128 - in /ant/ivy/core/trunk/src/java/org/apache/ivy: core/event/ core/module/descriptor/ plugins/parser/xml/
Date Wed, 09 Jun 2010 19:33:12 GMT
Author: gscokart
Date: Wed Jun  9 19:33:11 2010
New Revision: 953128

URL: http://svn.apache.org/viewvc?rev=953128&view=rev
Log:
Remove checkstyle WhitespaceAfterCheck errors

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/core/event/IvyEvent.java
    ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/DefaultExtendsDescriptor.java
    ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/DefaultModuleDescriptor.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/event/IvyEvent.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/core/event/IvyEvent.java?rev=953128&r1=953127&r2=953128&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/core/event/IvyEvent.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/core/event/IvyEvent.java Wed Jun  9 19:33:11
2010
@@ -66,7 +66,7 @@ public class IvyEvent {
     protected void addMridAttributes(ModuleRevisionId mrid) {
         addModuleIdAttributes(mrid.getModuleId());
         addAttribute("revision", mrid.getRevision());
-        addAttribute("branch",mrid.getBranch());
+        addAttribute("branch", mrid.getBranch());
         addAttributes(mrid.getQualifiedExtraAttributes());
         addAttributes(mrid.getExtraAttributes());
     }

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/DefaultExtendsDescriptor.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/DefaultExtendsDescriptor.java?rev=953128&r1=953127&r2=953128&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/DefaultExtendsDescriptor.java
(original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/DefaultExtendsDescriptor.java
Wed Jun  9 19:33:11 2010
@@ -37,7 +37,7 @@ public class DefaultExtendsDescriptor im
     }
 
     public String[] getExtendsTypes() {
-        return (String[])extendsTypes.toArray(new String[extendsTypes.size()]);
+        return (String[]) extendsTypes.toArray(new String[extendsTypes.size()]);
     }
 
     public boolean isAllInherited() {

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/DefaultModuleDescriptor.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/DefaultModuleDescriptor.java?rev=953128&r1=953127&r2=953128&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/DefaultModuleDescriptor.java
(original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/core/module/descriptor/DefaultModuleDescriptor.java
Wed Jun  9 19:33:11 2010
@@ -389,7 +389,7 @@ public class DefaultModuleDescriptor imp
     }
 
     public ExtendsDescriptor[] getInheritedDescriptors() {
-        return (ExtendsDescriptor[])inheritedDescriptors.toArray(
+        return (ExtendsDescriptor[]) inheritedDescriptors.toArray(
                 new ExtendsDescriptor[inheritedDescriptors.size()]);
     }
 

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=953128&r1=953127&r2=953128&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 19:33:11 2010
@@ -439,7 +439,7 @@ public class XmlModuleDescriptorParser e
                     parent.getModuleRevisionId(),
                     parent.getResolvedModuleRevisionId(),
                     attributes.getValue("location"),
-                    (String[])extendTypes.toArray(new String[extendTypes.size()]));
+                    (String[]) extendTypes.toArray(new String[extendTypes.size()]));
             getMd().addInheritedDescriptor(ed);
 
             mergeWithOtherModuleDescriptor(extendTypes, parent);
@@ -498,7 +498,8 @@ public class XmlModuleDescriptorParser e
 
             descriptor.setStatus(mergeValue(parent.getStatus(), descriptor.getStatus()));
             if (descriptor.getNamespace() == null && parent instanceof DefaultModuleDescriptor)
{
-                descriptor.setNamespace(((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=953128&r1=953127&r2=953128&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 19:33:11 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();
                     }
@@ -747,7 +747,7 @@ public final class XmlModuleDescriptorUp
             }
 
             for (Iterator extras = extraAttributes.entrySet().iterator(); extras.hasNext();
) {
-                Map.Entry extra = (Map.Entry)extras.next();
+                Map.Entry extra = (Map.Entry) extras.next();
                 write(" " + extra.getKey() + "=\"" + extra.getValue() +  "\"");
             }
         }



Mime
View raw message