1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-31 21:05:37 +02:00

cleaned up ASTNodeProperty

This commit is contained in:
Mike Kucera 2008-04-23 18:13:02 +00:00
parent b46e95b387
commit a178564585

View file

@ -1,12 +1,13 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2004, 2005 IBM Corporation and others. * Copyright (c) 2004, 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
* http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
* *
* Contributors: * Contributors:
* IBM - Initial API and implementation * IBM - Initial API and implementation
* Mike Kucera - cleanup
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.core.dom.ast; package org.eclipse.cdt.core.dom.ast;
@ -20,12 +21,8 @@ package org.eclipse.cdt.core.dom.ast;
*/ */
public class ASTNodeProperty { public class ASTNodeProperty {
private String name = ""; //$NON-NLS-1$ private final String name;
/**
* @param n
* name
*/
public ASTNodeProperty(String n) { public ASTNodeProperty(String n) {
this.name = n; this.name = n;
} }
@ -39,17 +36,9 @@ public class ASTNodeProperty {
public String getName() { public String getName() {
return name; return name;
} }
/**
* @param name
* The name to set.
*/
public void setName(String name) {
this.name = name;
}
@Override @Override
public String toString() { public String toString() {
return getName(); return name;
} }
} }