This repository was archived by the owner on Jul 31, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
src/main/java/com/kttdevelopment/simplehttpserver Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 66
77 <groupId >com.kttdevelopment</groupId >
88 <artifactId >simplehttpserver</artifactId >
9- <version >03.04.02 </version >
9+ <version >03.04.03 </version >
1010 <packaging >jar</packaging >
1111
1212 <url >https://github.com/Ktt-Development/simplehttpserver</url >
Original file line number Diff line number Diff line change 1313 *
1414 * @see SimpleHttpServer
1515 * @since 02.00.00
16- * @version 03.04.00
16+ * @version 03.04.03
1717 * @author Ktt Development
1818 */
1919@ SuppressWarnings ("SpellCheckingInspection" )
@@ -188,9 +188,9 @@ public synchronized final void removeContext(final HttpContext context){
188188
189189 @ Override
190190 public final HttpHandler getContextHandler (final String path ){
191- for (final HttpContext context : contexts .keySet ())
192- if (context .getPath ().equals (getContext (path )))
193- return context . getHandler ();
191+ for (final Map . Entry < HttpContext , HttpHandler > entry : contexts .entrySet ())
192+ if (entry . getKey () .getPath ().equals (getContext (path )))
193+ return entry . getValue ();
194194 return null ;
195195 }
196196
Original file line number Diff line number Diff line change 1313 *
1414 * @see SimpleHttpsServer
1515 * @since 03.04.00
16- * @version 03.04.02
16+ * @version 03.04.03
1717 * @author Ktt Development
1818 */
1919final class SimpleHttpsServerImpl extends SimpleHttpsServer {
@@ -203,9 +203,9 @@ public synchronized final void removeContext(final HttpContext context){
203203
204204 @ Override
205205 public final HttpHandler getContextHandler (final String path ){
206- for (final HttpContext context : contexts .keySet ())
207- if (context .getPath ().equals (getContext (path )))
208- return context . getHandler ();
206+ for (final Map . Entry < HttpContext , HttpHandler > entry : contexts .entrySet ())
207+ if (entry . getKey () .getPath ().equals (getContext (path )))
208+ return entry . getValue ();
209209 return null ;
210210 }
211211
You can’t perform that action at this time.
0 commit comments