File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
src/main/java/com/ericsson/eiffelcommons Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 44 <modelVersion >4.0.0</modelVersion >
55 <groupId >com.github.ericsson</groupId >
66 <artifactId >eiffel-commons-java</artifactId >
7- <version >0.0.7 </version >
7+ <version >0.0.8 </version >
88 <name >eiffel commons java</name >
99 <description >A shared library for eiffel components</description >
1010
Original file line number Diff line number Diff line change 1010import lombok .Getter ;
1111
1212public abstract class SubscriptionObject {
13- private static final String SUBSCRIPTION_TEMPLATE_PATH = "subscriptionsTemplate.json" ;
13+ private static final String SUBSCRIPTION_TEMPLATE_PATH = "/ subscriptionsTemplate.json" ;
1414
1515 @ Getter
1616 protected JSONObject subscriptionJson ;
Original file line number Diff line number Diff line change 55import org .json .JSONObject ;
66
77public class RegExProvider {
8- private static final String REGULAR_EXPRESSIONS_PATH = "regExs.json" ;
8+
9+ private static final String REGULAR_EXPRESSIONS_PATH = "/regExs.json" ;
910
1011 /**
1112 * This method returns Json Object for regular expressions
Original file line number Diff line number Diff line change @@ -36,8 +36,7 @@ public class Utils {
3636 * @throws FileNotFoundException
3737 */
3838 public static String getResourceFileAsString (String fileName ) throws FileNotFoundException {
39- ClassLoader classLoader = ClassLoader .getSystemClassLoader ();
40- InputStream inputStream = classLoader .getResourceAsStream (fileName );
39+ InputStream inputStream = Utils .class .getResourceAsStream (fileName );
4140 if (inputStream != null ) {
4241 BufferedReader reader = new BufferedReader (new InputStreamReader (inputStream ));
4342 return reader .lines ()
You can’t perform that action at this time.
0 commit comments