commit | 26537d6b807b0c92ff641534ee3a2f0130ab83be | [log] [tgz] |
---|---|---|
author | David Ostrovsky <david.ostrovsky@gmail.com> | Sun Feb 12 22:35:50 2017 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Sun Feb 12 22:35:50 2017 +0000 |
tree | a5dc5ca00f4c17a89bee290a4672ca4bd1a959f4 | |
parent | 5c6575672eb9c00425f957e58e6a1f170241fdb4 [diff] | |
parent | a419a075dbe2379183d3d2676128f389bd2fbb29 [diff] |
Merge "Fix MisusedWeekYear bug pattern flagged by error prone"
diff --git a/src/main/java/com/googlesource/gerrit/plugins/refprotection/BackupRef.java b/src/main/java/com/googlesource/gerrit/plugins/refprotection/BackupRef.java index de5014a..884d1ab 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/refprotection/BackupRef.java +++ b/src/main/java/com/googlesource/gerrit/plugins/refprotection/BackupRef.java
@@ -188,7 +188,7 @@ if (refName.startsWith(R_HEADS) || refName.startsWith(R_TAGS)) { return String.format("%s-%s", R_BACKUPS + refName.replaceFirst(R_REFS, ""), - new SimpleDateFormat("YYYYMMdd-HHmmss").format(new Date())); + new SimpleDateFormat("yyyyMMdd-HHmmss").format(new Date())); } return refName;