equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 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 |
636 /** |
636 /** |
637 * A variation of {@code loadClass} to load a class with the specified |
637 * A variation of {@code loadClass} to load a class with the specified |
638 * binary name. This method returns {@code null} when the class is not |
638 * binary name. This method returns {@code null} when the class is not |
639 * found. |
639 * found. |
640 */ |
640 */ |
641 protected Class<?> loadClassOrNull(String cn) { |
641 protected final Class<?> loadClassOrNull(String cn) { |
642 return loadClassOrNull(cn, false); |
642 return loadClassOrNull(cn, false); |
643 } |
643 } |
644 |
644 |
645 /** |
645 /** |
646 * Finds the candidate loaded module for the given class name. |
646 * Finds the candidate loaded module for the given class name. |