Skip to content

Commit f4dcc7d

Browse files
authored
80 char limit
1 parent 2051243 commit f4dcc7d

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

src/paintcomponents/data/DataDisplayPaintComponent.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,15 @@ public DataDisplayPaintComponent(String displayingText, int x, int y) {
3333
* @throws NoSuchElementException
3434
* @see DataToPoint.fetchData for exception details
3535
*/
36-
public void updateDisplayText() throws NoSuchElementException, NoConnectingLineSegmentException, DataFromPointNoDataProviderException, DataFromPointProviderCannotProvideDataException{
37-
Object data = getToPoints().get(0).fetchData();/*
38-
* .toString();// add //
39-
* toString // to ignore
40-
* // error
41-
*/
36+
public void updateDisplayText() throws NoSuchElementException, NoConnectingLineSegmentException,
37+
DataFromPointNoDataProviderException, DataFromPointProviderCannotProvideDataException{
38+
Object data = getToPoints().get(0).fetchData();
4239
this.setDisplayingText(data.toString());
4340
/*if(data instanceof String){
4441
this.setDisplayingText(data.toString());
4542
} else {
46-
this.setDisplayingText("Error: Not A String :: " + "Type : " + data.getClass().toString() + " Value: " + data.toString());
43+
this.setDisplayingText("Error: Not A String :: " + "Type : " +
44+
data.getClass().toString() + " Value: " + data.toString());
4745
}*/
4846
}
4947

0 commit comments

Comments
 (0)