leosutic    2003/08/10 15:21:37

  Modified:    attributes/api/src/java/org/apache/avalon/attributes
                        Util.java
  Log:
  1. Moved all build stuff into Maven.
  2. Wrote a proper test case.
  3. Included support for attributes attached to fields and constructors.
  4. Slight code cleanups.
  
  Revision  Changes    Path
  1.2       +4 -4      
avalon-sandbox/attributes/api/src/java/org/apache/avalon/attributes/Util.java
  
  Index: Util.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/attributes/api/src/java/org/apache/avalon/attributes/Util.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Util.java 10 Aug 2003 13:46:08 -0000      1.1
  +++ Util.java 10 Aug 2003 22:21:37 -0000      1.2
  @@ -6,15 +6,15 @@
   
   class Util {
       
  -    public static String getSignature (Method m) throws Exception {
  +    public static String getSignature (Method m) {
           return m.getName () + "(" + getParameterList (m.getParameterTypes ()) + ")";
       }
       
  -    public static String getSignature (Constructor c) throws Exception {
  +    public static String getSignature (Constructor c) {
           return "(" + getParameterList (c.getParameterTypes ()) + ")";
       }
       
  -    public static String decodedClassName (String rawName) throws Exception {
  +    public static String decodedClassName (String rawName) throws 
IllegalArgumentException {
           if (!rawName.startsWith ("[")) {
               return rawName;
           } else {
  @@ -42,7 +42,7 @@
           }
       }
       
  -    public static String getParameterList (Class[] params) throws Exception {
  +    public static String getParameterList (Class[] params) {
           StringBuffer sb = new StringBuffer ();
           for (int i = 0; i < params.length; i++) {
               if (i > 0) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to