changeset 249:2ebc0471aa02

DIO-11:<openjdkdio>/src/se/classes/com/oracle/dio/registry/RegistryImpl.java does not compile Summary: DIO-11: Added "final" modifier to local variable "path", now the code is compilable. Reviewed-by:snazarki Contributed-by:bkvartsk
author onazarkina
date Thu, 11 Feb 2016 13:23:23 +0300
parents 9e33128d2ca4
children ad12ae44e850
files src/se/classes/com/oracle/dio/registry/RegistryImpl.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/se/classes/com/oracle/dio/registry/RegistryImpl.java	Mon Dec 28 15:07:18 2015 +0300
+++ b/src/se/classes/com/oracle/dio/registry/RegistryImpl.java	Thu Feb 11 13:23:23 2016 +0300
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 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
@@ -165,7 +165,7 @@
     }
 
     private void saveRegistry(Properties registry) throws IOException {
-        String path = Configuration.getSystemProperty(REGISTRY_FILE_PATH);
+        final String path = Configuration.getSystemProperty(REGISTRY_FILE_PATH);
         if (path == null) {
             throw new IOException("Registry is not available");
         }