src/java.base/share/classes/sun/security/util/ObjectIdentifier.java

Print this page
8152237 Support BigInteger.TWO

*** 1,7 **** /* ! * Copyright (c) 1996, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1996, 2016, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 618,628 **** "First oid component is invalid "); } } private static void checkFirstComponent(BigInteger first) throws IOException { if (first.signum() == -1 || ! first.compareTo(BigInteger.valueOf(2)) == 1) { throw new IOException("ObjectIdentifier() -- " + "First oid component is invalid "); } } private static void checkSecondComponent(int first, int second) throws IOException { --- 618,628 ---- "First oid component is invalid "); } } private static void checkFirstComponent(BigInteger first) throws IOException { if (first.signum() == -1 || ! first.compareTo(BigInteger.TWO) == 1) { throw new IOException("ObjectIdentifier() -- " + "First oid component is invalid "); } } private static void checkSecondComponent(int first, int second) throws IOException {