mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 04:45:38 +02:00
cleaned up ASTNodeProperty
This commit is contained in:
parent
b46e95b387
commit
a178564585
1 changed files with 5 additions and 16 deletions
|
@ -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
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* IBM - Initial API and implementation
|
||||
* 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;
|
||||
}
|
||||
|
@ -39,17 +36,9 @@ public class ASTNodeProperty {
|
|||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param name
|
||||
* The name to set.
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getName();
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue