Skip to content

Commit 942fe04

Browse files
committed
Fix Error Prone findings: MisusedWeekYear
1 parent fd9bf25 commit 942fe04

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ allprojects {
5656
check('EqualsHashCode', net.ltgt.gradle.errorprone.CheckSeverity.OFF)
5757
check('EqualsNull', net.ltgt.gradle.errorprone.CheckSeverity.OFF)
5858
check('HashtableContains', net.ltgt.gradle.errorprone.CheckSeverity.OFF)
59-
check('MisusedWeekYear', net.ltgt.gradle.errorprone.CheckSeverity.OFF)
6059
check('RandomModInteger', net.ltgt.gradle.errorprone.CheckSeverity.OFF)
6160
check('ReturnValueIgnored', net.ltgt.gradle.errorprone.CheckSeverity.OFF)
6261
check('SelfEquals', net.ltgt.gradle.errorprone.CheckSeverity.OFF)

core/src/main/java/org/bouncycastle/crypto/params/SkeinParameters.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public Builder setPersonalisation(Date date, String emailAddress, String disting
243243
{
244244
final ByteArrayOutputStream bout = new ByteArrayOutputStream();
245245
final OutputStreamWriter out = new OutputStreamWriter(bout, "UTF-8");
246-
final DateFormat format = new SimpleDateFormat("YYYYMMdd");
246+
final DateFormat format = new SimpleDateFormat("yyyyMMdd");
247247
out.write(format.format(date));
248248
out.write(" ");
249249
out.write(emailAddress);
@@ -278,7 +278,7 @@ public Builder setPersonalisation(Date date, Locale dateLocale, String emailAddr
278278
{
279279
final ByteArrayOutputStream bout = new ByteArrayOutputStream();
280280
final OutputStreamWriter out = new OutputStreamWriter(bout, "UTF-8");
281-
final DateFormat format = new SimpleDateFormat("YYYYMMdd", dateLocale);
281+
final DateFormat format = new SimpleDateFormat("yyyyMMdd", dateLocale);
282282
out.write(format.format(date));
283283
out.write(" ");
284284
out.write(emailAddress);

prov/src/main/java/org/bouncycastle/jcajce/spec/SkeinParameterSpec.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public Builder setPersonalisation(Date date, String emailAddress, String disting
235235
{
236236
final ByteArrayOutputStream bout = new ByteArrayOutputStream();
237237
final OutputStreamWriter out = new OutputStreamWriter(bout, "UTF-8");
238-
final DateFormat format = new SimpleDateFormat("YYYYMMdd");
238+
final DateFormat format = new SimpleDateFormat("yyyyMMdd");
239239
out.write(format.format(date));
240240
out.write(" ");
241241
out.write(emailAddress);
@@ -270,7 +270,7 @@ public Builder setPersonalisation(Date date, Locale dateLocale, String emailAddr
270270
{
271271
final ByteArrayOutputStream bout = new ByteArrayOutputStream();
272272
final OutputStreamWriter out = new OutputStreamWriter(bout, "UTF-8");
273-
final DateFormat format = new SimpleDateFormat("YYYYMMdd", dateLocale);
273+
final DateFormat format = new SimpleDateFormat("yyyyMMdd", dateLocale);
274274
out.write(format.format(date));
275275
out.write(" ");
276276
out.write(emailAddress);

0 commit comments

Comments
 (0)