mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 13:05:22 +02:00
[221488] Fix lazy initialization in getInstance()
This commit is contained in:
parent
98486aac9b
commit
7f08921789
1 changed files with 3 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2006, 2007 IBM Corporation and others.
|
* Copyright (c) 2006, 2008 IBM Corporation and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* {Name} (company) - description of contribution.
|
* Martin Oberhuber (Wind River) - [221488] Fix lazy initialization in getInstance()
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.services.clientserver.java;
|
package org.eclipse.rse.internal.services.clientserver.java;
|
||||||
|
@ -24,7 +24,7 @@ package org.eclipse.rse.internal.services.clientserver.java;
|
||||||
*/
|
*/
|
||||||
public class ClassFileUTF8Reader {
|
public class ClassFileUTF8Reader {
|
||||||
|
|
||||||
private static ClassFileUTF8Reader instance;
|
private static ClassFileUTF8Reader instance = new ClassFileUTF8Reader();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
@ -38,11 +38,6 @@ public class ClassFileUTF8Reader {
|
||||||
* @return the singleton instance.
|
* @return the singleton instance.
|
||||||
*/
|
*/
|
||||||
public static final ClassFileUTF8Reader getInstance() {
|
public static final ClassFileUTF8Reader getInstance() {
|
||||||
|
|
||||||
if (instance == null) {
|
|
||||||
instance = new ClassFileUTF8Reader();
|
|
||||||
}
|
|
||||||
|
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue