Skip to content

Commit f024346

Browse files
committed
implement single-enum singleton properly!
1 parent 8606249 commit f024346

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/tech/stackable/hadoop/StackableGroupMapper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ public class StackableGroupMapper implements GroupMappingServiceProvider {
3333

3434
public enum HadoopConfig {
3535
INSTANCE;
36+
private Configuration configuration = new Configuration();
3637
public Configuration getConfiguration() {
37-
return new Configuration();
38+
return this.configuration;
3839
}
3940
}
4041

0 commit comments

Comments
 (0)