Updated Lang3Utils.java (#2584)

* Updated Lang3Utils.java

Added a new test for ConcurrentException and updated other exception with Lambda

* LazyInitializer sample files

* Updated file with LazyInitializer Unit Test
This commit is contained in:
Kiran
2017-09-16 22:19:21 +05:30
committed by adamd1985
parent f3557dec41
commit a3f70aafe4
3 changed files with 42 additions and 6 deletions
@@ -0,0 +1,11 @@
package com.baeldung.commons.lang3;
import org.apache.commons.lang3.concurrent.LazyInitializer;
public class SampleLazyInitializer extends LazyInitializer<SampleObject> {
@Override
protected SampleObject initialize() {
return new SampleObject();
}
}
@@ -0,0 +1,7 @@
package com.baeldung.commons.lang3;
public class SampleObject {
//Ignored
}