Skip to content

Commit

Permalink
Era.displayName removed
Browse files Browse the repository at this point in the history
- Working towards elimination of Locale from public APIS
  • Loading branch information
mP1 committed Dec 19, 2019
1 parent 39d948b commit 6aa4efd
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/threeten/bp/chrono/Era.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@ public interface Era extends TemporalAccessor, TemporalAdjuster {
* @param locale the locale to use, not null
* @return the text value of the era, not null
*/
String getDisplayName(TextStyle style, Locale locale);
//String getDisplayName(TextStyle style, Locale locale);

}
8 changes: 4 additions & 4 deletions src/main/java/org/threeten/bp/chrono/HijrahEra.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ public <R> R query(TemporalQuery<R> query) {
}

//-----------------------------------------------------------------------
@Override
public String getDisplayName(TextStyle style, Locale locale) {
return new DateTimeFormatterBuilder().appendText(ERA, style).toFormatter(locale).format(this);
}
// @Override
// public String getDisplayName(TextStyle style, Locale locale) {
// return new DateTimeFormatterBuilder().appendText(ERA, style).toFormatter(locale).format(this);
// }

/**
* Returns the proleptic year from this era and year of era.
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/org/threeten/bp/chrono/IsoEra.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ public <R> R query(TemporalQuery<R> query) {
}

//-----------------------------------------------------------------------
@Override
public String getDisplayName(TextStyle style, Locale locale) {
return new DateTimeFormatterBuilder().appendText(ERA, style).toFormatter(locale).format(this);
}
// @Override
// public String getDisplayName(TextStyle style, Locale locale) {
// return new DateTimeFormatterBuilder().appendText(ERA, style).toFormatter(locale).format(this);
// }

}
8 changes: 4 additions & 4 deletions src/main/java/org/threeten/bp/chrono/MinguoEra.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ public <R> R query(TemporalQuery<R> query) {
}

//-----------------------------------------------------------------------
@Override
public String getDisplayName(TextStyle style, Locale locale) {
return new DateTimeFormatterBuilder().appendText(ERA, style).toFormatter(locale).format(this);
}
// @Override
// public String getDisplayName(TextStyle style, Locale locale) {
// return new DateTimeFormatterBuilder().appendText(ERA, style).toFormatter(locale).format(this);
// }

//-----------------------------------------------------------------------
@GwtIncompatible
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/org/threeten/bp/chrono/ThaiBuddhistEra.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ public <R> R query(TemporalQuery<R> query) {
}

//-----------------------------------------------------------------------
@Override
public String getDisplayName(TextStyle style, Locale locale) {
return new DateTimeFormatterBuilder().appendText(ERA, style).toFormatter(locale).format(this);
}
// @Override
// public String getDisplayName(TextStyle style, Locale locale) {
// return new DateTimeFormatterBuilder().appendText(ERA, style).toFormatter(locale).format(this);
// }

//-----------------------------------------------------------------------
@GwtIncompatible
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/org/threeten/bp/jdk8/DefaultInterfaceEra.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ public <R> R query(TemporalQuery<R> query) {
}

//-----------------------------------------------------------------------
@Override
public String getDisplayName(TextStyle style, Locale locale) {
return new DateTimeFormatterBuilder().appendText(ERA, style).toFormatter(locale).format(this);
}
// @Override
// public String getDisplayName(TextStyle style, Locale locale) {
// return new DateTimeFormatterBuilder().appendText(ERA, style).toFormatter(locale).format(this);
// }

}

0 comments on commit 6aa4efd

Please sign in to comment.