Commit 8fe1323 1 parent ecde52e commit 8fe1323 Copy full SHA for 8fe1323
File tree 2 files changed +10
-10
lines changed
unix/classes/sun/net/www/protocol/jar
windows/classes/sun/net/www/protocol/jar
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 1997, 2013 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 1997, 2021 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -123,10 +123,10 @@ private JarFile getCachedJarFile(URL url) {
123
123
124
124
/* if the JAR file is cached, the permission will always be there */
125
125
if (result != null ) {
126
- Permission perm = getPermission ( result );
127
- if (perm != null ) {
128
- SecurityManager sm = System . getSecurityManager ( );
129
- if (sm != null ) {
126
+ SecurityManager sm = System . getSecurityManager ( );
127
+ if (sm != null ) {
128
+ Permission perm = getPermission ( result );
129
+ if (perm != null ) {
130
130
try {
131
131
sm .checkPermission (perm );
132
132
} catch (SecurityException se ) {
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 1999, 2013 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 1999, 2021 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -133,10 +133,10 @@ private JarFile getCachedJarFile(URL url) {
133
133
134
134
/* if the JAR file is cached, the permission will always be there */
135
135
if (result != null ) {
136
- Permission perm = getPermission ( result );
137
- if (perm != null ) {
138
- SecurityManager sm = System . getSecurityManager ( );
139
- if (sm != null ) {
136
+ SecurityManager sm = System . getSecurityManager ( );
137
+ if (sm != null ) {
138
+ Permission perm = getPermission ( result );
139
+ if (perm != null ) {
140
140
try {
141
141
sm .checkPermission (perm );
142
142
} catch (SecurityException se ) {
You can’t perform that action at this time.
0 commit comments