Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
Fix getSimpleName return null
Browse files Browse the repository at this point in the history
  • Loading branch information
Rauks committed Nov 20, 2013
1 parent 852ba28 commit 1e92c61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public void updateItem(ObservableField item, boolean empty){
*/
public void setObservation(ObservableClass classe){
this.classe = classe;
this.title.setValue(this.classe.getSimpleName().isEmpty()?this.classe.getName():this.classe.getSimpleName());
this.title.setValue(this.classe.getSimpleName());
try {
this.observablesMethods.addAll(this.classe.getMethods());
Collections.sort(this.observablesMethods, new Comparator<ObservableMethod>(){
Expand Down
2 changes: 1 addition & 1 deletion BigBrother/src/bigbrother/core/model/ObservableClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public String getName(){
}

public String getSimpleName(){
return this.classe.getSimpleName();
return (this.classe.getSimpleName().isEmpty())?this.getName().replaceAll(".*\\.", ""):this.classe.getSimpleName();
}

public Type getType(){
Expand Down

0 comments on commit 1e92c61

Please sign in to comment.