From 1795821684bbdaf9a548021fd8dd5a51f9157f64 Mon Sep 17 00:00:00 2001 From: Nadeesh TV Date: Thu, 2 Apr 2015 14:25:27 -0400 Subject: [PATCH] 8076441: Dead code in java.time.chrono.Chronology.isLeapYear after fixing JDK-8067800 Reviewed-by: igerasim, rriggs --- .../share/classes/java/time/chrono/HijrahChronology.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jdk/src/java.base/share/classes/java/time/chrono/HijrahChronology.java b/jdk/src/java.base/share/classes/java/time/chrono/HijrahChronology.java index 0e79b696db3..3dbbec5c0a4 100644 --- a/jdk/src/java.base/share/classes/java/time/chrono/HijrahChronology.java +++ b/jdk/src/java.base/share/classes/java/time/chrono/HijrahChronology.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -478,7 +478,6 @@ public final class HijrahChronology extends AbstractChronology implements Serial if (prolepticYear < getMinimumYear() || prolepticYear > getMaximumYear()) { return false; } - int epochMonth = yearToEpochMonth((int) prolepticYear); int len = getYearLength((int) prolepticYear); return (len > 354); } @@ -659,7 +658,7 @@ public final class HijrahChronology extends AbstractChronology implements Serial } /** - * Return the maximum supported Hijrah ear. + * Return the maximum supported Hijrah year. * * @return the minimum */