MCPcopy Create free account
hub / github.com/bobbylight/RText / getHostName

Method getHostName

src/main/java/org/fife/rtext/RText.java:576–585  ·  view source on GitHub ↗

Returns the name of the local host. This is lazily discovered. @return The name of the local host.

()

Source from the content-addressed store, hash-verified

574 * @return The name of the local host.
575 */
576 private synchronized String getHostName() {
577 if (hostName==null) {
578 try {
579 hostName = InetAddress.getLocalHost().getHostName();
580 } catch (UnknownHostException uhe) { // Should never happen
581 hostName = "Unknown";
582 }
583 }
584 return hostName;
585 }
586
587
588 /**

Callers 1

setTitleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected