Clover coverage report -
Coverage timestamp: jeu. juin 15 2006 08:24:33 CEST
file stats: LOC: 36   Methods: 2
NCLOC: 18   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
Messages.java - 0% 0% 0%
coverage
 1    package org.sat4j;
 2   
 3    import java.util.MissingResourceException;
 4    import java.util.ResourceBundle;
 5   
 6    /**
 7    * That class is intented to manage internationalisation
 8    * within the application.
 9    *
 10    * @author leberre
 11    *
 12    */
 13    public class Messages {
 14    private static final String BUNDLE_NAME = "org.sat4j.messages"; //$NON-NLS-1$
 15   
 16    private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
 17    .getBundle(BUNDLE_NAME);
 18   
 19    /**
 20    * No instances should be used.
 21    * Use Messages.getString(key) to get localized message for key.
 22    *
 23    */
 24  0 private Messages() {
 25  0 super();
 26    }
 27   
 28  0 public static String getString(String key) {
 29    // TODO Auto-generated method stub
 30  0 try {
 31  0 return RESOURCE_BUNDLE.getString(key);
 32    } catch (MissingResourceException e) {
 33  0 return '!' + key + '!';
 34    }
 35    }
 36    }