MCPcopy Index your code
hub / github.com/arduino/Arduino / close

Method close

app/src/processing/app/SerialPlotter.java:487–496  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

485 }
486
487 public void close() throws Exception {
488 if (serial != null) {
489 super.close();
490 int[] location = getPlacement();
491 String locationStr = PApplet.join(PApplet.str(location), ",");
492 PreferencesData.set("last.serial.location", locationStr);
493 serial.dispose();
494 serial = null;
495 }
496 }
497}

Callers 1

SerialPlotterMethod · 0.95

Calls 5

joinMethod · 0.95
strMethod · 0.95
setMethod · 0.95
getPlacementMethod · 0.45
disposeMethod · 0.45

Tested by

no test coverage detected