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,5 +1,5 @@
/*******************************************************************************
* 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
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -7,6 +7,7 @@
*
* Contributors:
* IBM - Initial API and implementation
* Mike Kucera - cleanup
*******************************************************************************/
package org.eclipse.cdt.core.dom.ast;
@ -20,12 +21,8 @@ package org.eclipse.cdt.core.dom.ast;
*/
public class ASTNodeProperty {
private String name = ""; //$NON-NLS-1$
private final String name;
/**
* @param n
* name
*/
public ASTNodeProperty(String n) {
this.name = n;
}
@ -40,16 +37,8 @@ public class ASTNodeProperty {
return name;
}
/**
* @param name
* The name to set.
*/
public void setName(String name) {
this.name = name;
}
@Override
public String toString() {
return getName();
return name;
}
}