From a0872a3849cde8043ed02c2e4a0487163da27562 Mon Sep 17 00:00:00 2001
From: Richard Allred <richardmallred@gmail.com>
Date: Wed, 24 Jul 2019 13:35:05 +0200
Subject: [PATCH] Merge branch 'master' of github.com:RedHatTraining/DO288-apps

---
 java-serverhost/src/main/java/com/redhat/training/example/javaserverhost/rest/ServerHostEndPoint.java |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/java-serverhost/src/main/java/com/redhat/training/example/javaserverhost/rest/ServerHostEndPoint.java b/java-serverhost/src/main/java/com/redhat/training/example/javaserverhost/rest/ServerHostEndPoint.java
index a5ff9c1..b09770a 100644
--- a/java-serverhost/src/main/java/com/redhat/training/example/javaserverhost/rest/ServerHostEndPoint.java
+++ b/java-serverhost/src/main/java/com/redhat/training/example/javaserverhost/rest/ServerHostEndPoint.java
@@ -1,26 +1,26 @@
 package com.redhat.training.example.javaserverhost.rest;
 
-
 import javax.ws.rs.Path;
 import javax.ws.rs.core.Response;
 import javax.ws.rs.GET;
 import javax.ws.rs.Produces;
 import java.net.InetAddress;
 
-
 @Path("/")
 public class ServerHostEndPoint {
 
-	@GET
-	@Produces("text/plain")
-	public Response doGet() {
-		String host = "";
-		try {
-			host = InetAddress.getLocalHost().getHostName();
-		}
-		 catch (Exception e) {
-            e.printStackTrace();
-        }
-		return Response.ok("I am running on server "+host+" Version 1.0 \n").build();
-	}
+  @GET
+  @Produces("text/plain")
+  public Response doGet() {
+    String host = "";
+    try {
+      host = InetAddress.getLocalHost().getHostName();
+    }
+    catch (Exception e) {
+       e.printStackTrace();
+    }
+    String msg = "I am running on server "+host+" Version 1.0 \n";
+    return Response.ok(msg).build();
+  }
 }
+

--
Gitblit v1.9.3