Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jcodagnone committed Feb 19, 2024
1 parent 59b8795 commit 91250fa
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
* $
*/
public class ISO8601DateParser {
private static ThreadLocal<DateFormat> normalDf = new ThreadLocal<DateFormat>() {
private static ThreadLocal<DateFormat> normalDf = new ThreadLocal<>() {
@Override
protected synchronized DateFormat initialValue() {
return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssz", Locale.ENGLISH);
}
};
private static ThreadLocal<DateFormat> hackDf = new ThreadLocal<DateFormat>() {
private static ThreadLocal<DateFormat> hackDf = new ThreadLocal<>() {
@Override
protected synchronized DateFormat initialValue() {
return new SimpleDateFormat("yyyy-MM-dd'T'HH-mm-ss", Locale.ENGLISH);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.Version;
import com.fasterxml.jackson.databind.DeserializationConfig;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationConfig;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.zaubersoftware.gnip4j.api.StreamNotification;
import com.zaubersoftware.gnip4j.api.model.Activity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class StreamNotificationAdapterTest {
/** nothing to do! */
@Test
public final void testNull() {
final StreamNotification<Activity> n = new StreamNotificationAdapter<Activity>() {
final StreamNotification<Activity> n = new StreamNotificationAdapter<>() {
@Override
public void notify(final Activity activity, final GnipStream stream) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public String getHttpMethodForRulesDelete() {

System.out.println("-- Creating stream");
final AtomicInteger counter = new AtomicInteger();
final StreamNotificationAdapter<Activity> n = new StreamNotificationAdapter<Activity>() {
final StreamNotificationAdapter<Activity> n = new StreamNotificationAdapter<>() {
@Override
public void notify(final Activity activity, final GnipStream stream) {
final int i = counter.getAndIncrement();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void testname() throws Exception {

System.out.println("-- Creating stream");
final AtomicInteger counter = new AtomicInteger();
final StreamNotificationAdapter<Activity> n = new StreamNotificationAdapter<Activity>() {
final StreamNotificationAdapter<Activity> n = new StreamNotificationAdapter<>() {
@Override
public void notify(final Activity activity, final GnipStream stream) {
final int i = counter.getAndIncrement();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* @since May 26, 2011
*/
public final class JMXTest {
private final StreamNotificationAdapter<Activity> observer = new StreamNotificationAdapter<Activity>() {
private final StreamNotificationAdapter<Activity> observer = new StreamNotificationAdapter<>() {
@Override
public void notify(final Activity activity, final GnipStream stream) {

Expand Down

0 comments on commit 91250fa

Please sign in to comment.