src/java.base/share/classes/sun/util/locale/provider/CalendarDataUtility.java
changeset 53877 dfea18758dfa
parent 51276 04183bf08bff
child 55529 33766821f738
equal deleted inserted replaced
53876:8bc3d3eeaa53 53877:dfea18758dfa
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   254                 value = calendarDataProvider.getMinimalDaysInFirstWeek(locale);
   254                 value = calendarDataProvider.getMinimalDaysInFirstWeek(locale);
   255                 break;
   255                 break;
   256             default:
   256             default:
   257                 throw new InternalError("invalid requestID: " + requestID);
   257                 throw new InternalError("invalid requestID: " + requestID);
   258             }
   258             }
   259             return (value != 0) ? value : null;
   259 
       
   260             assert value != 0;
       
   261             return value;
   260         }
   262         }
   261     }
   263     }
   262 }
   264 }