commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgra...@apache.org
Subject cvs commit: jakarta-commons-sandbox/resources/src/java/org/apache/commons/resources/impl PropertyResources.java XMLResources.java WebappPropertyResources.java
Date Sat, 19 Apr 2003 18:31:16 GMT
dgraham     2003/04/19 11:31:16

  Modified:    resources/src/java/org/apache/commons/resources/impl
                        PropertyResources.java XMLResources.java
                        WebappPropertyResources.java
  Log:
  Log exceptions thrown when closing streams.
  
  Revision  Changes    Path
  1.4       +7 -7      jakarta-commons-sandbox/resources/src/java/org/apache/commons/resources/impl/PropertyResources.java
  
  Index: PropertyResources.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/resources/src/java/org/apache/commons/resources/impl/PropertyResources.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PropertyResources.java	28 Feb 2003 02:50:22 -0000	1.3
  +++ PropertyResources.java	19 Apr 2003 18:31:16 -0000	1.4
  @@ -7,7 +7,7 @@
    *
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 1999-2002 The Apache Software Foundation.  All rights
  + * Copyright (c) 1999-2003 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -199,8 +199,8 @@
               if (stream != null) {
                   try {
                       stream.close();
  -                } catch (Exception e) {
  -                    ;
  +                } catch (IOException e) {
  +                    log.error("Error closing stream.", e);
                   }
                   stream = null;
               }
  
  
  
  1.3       +7 -7      jakarta-commons-sandbox/resources/src/java/org/apache/commons/resources/impl/XMLResources.java
  
  Index: XMLResources.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/resources/src/java/org/apache/commons/resources/impl/XMLResources.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- XMLResources.java	28 Feb 2003 02:50:22 -0000	1.2
  +++ XMLResources.java	19 Apr 2003 18:31:16 -0000	1.3
  @@ -7,7 +7,7 @@
    *
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 1999-2002 The Apache Software Foundation.  All rights
  + * Copyright (c) 1999-2003 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -232,8 +232,8 @@
               if (stream != null) {
                   try {
                       stream.close();
  -                } catch (Exception e) {
  -                    ;
  +                } catch (IOException e) {
  +                    log.error("Error closing stream.", e);
                   }
                   stream = null;
               }
  
  
  
  1.3       +7 -7      jakarta-commons-sandbox/resources/src/java/org/apache/commons/resources/impl/WebappPropertyResources.java
  
  Index: WebappPropertyResources.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/resources/src/java/org/apache/commons/resources/impl/WebappPropertyResources.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- WebappPropertyResources.java	28 Feb 2003 02:50:22 -0000	1.2
  +++ WebappPropertyResources.java	19 Apr 2003 18:31:16 -0000	1.3
  @@ -7,7 +7,7 @@
    *
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 1999-2002 The Apache Software Foundation.  All rights
  + * Copyright (c) 1999-2003 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -213,8 +213,8 @@
               if (stream != null) {
                   try {
                       stream.close();
  -                } catch (Exception e) {
  -                    ;
  +                } catch (IOException e) {
  +                    log.error("Error closing stream.", e);
                   }
                   stream = null;
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message