Clover coverage report - Code Coverage for hivemind release 1.0-beta-2
Coverage timestamp: Sun Aug 1 2004 14:03:45 EDT
file stats: LOC: 53   Methods: 2
NCLOC: 16   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
SDLMessages.java - 50% 50% 50%
coverage coverage
 1   
 //  Copyright 2004 The Apache Software Foundation
 2   
 //
 3   
 // Licensed under the Apache License, Version 2.0 (the "License");
 4   
 // you may not use this file except in compliance with the License.
 5   
 // You may obtain a copy of the License at
 6   
 //
 7   
 //     http://www.apache.org/licenses/LICENSE-2.0
 8   
 //
 9   
 // Unless required by applicable law or agreed to in writing, software
 10   
 // distributed under the License is distributed on an "AS IS" BASIS,
 11   
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12   
 // See the License for the specific language governing permissions and
 13   
 // limitations under the License.
 14   
 
 15   
 package org.apache.hivemind.sdl;
 16   
 import org.apache.hivemind.Resource;
 17   
 import org.apache.hivemind.impl.MessageFormatter;
 18   
 
 19   
 // Copyright 2004 The Apache Software Foundation
 20   
 //
 21   
 // Licensed under the Apache License, Version 2.0 (the "License");
 22   
 // you may not use this file except in compliance with the License.
 23   
 // You may obtain a copy of the License at
 24   
 //
 25   
 //    http://www.apache.org/licenses/LICENSE-2.0
 26   
 //
 27   
 // Unless required by applicable law or agreed to in writing, software
 28   
 // distributed under the License is distributed on an "AS IS" BASIS,
 29   
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 30   
 // See the License for the specific language governing permissions and
 31   
 // limitations under the License.
 32   
 
 33   
 /**
 34   
  * Messages for the sdl package.
 35   
  *
 36   
  * @author Howard Lewis Ship
 37   
  */
 38   
 final class SDLMessages
 39   
 {
 40   
     private static final MessageFormatter _formatter =
 41   
         new MessageFormatter(SDLMessages.class, "SDLStrings");
 42   
 
 43  2
     public static String parseError(Resource resource, Throwable cause)
 44   
     {
 45  2
         return _formatter.format("parse-error", resource, cause);
 46   
     }
 47   
 
 48  0
     public static String unableToCloseStream(Resource resource, Throwable cause)
 49   
     {
 50  0
         return _formatter.format("unable-to-close-stream", resource, cause);
 51   
     }
 52   
 }
 53