Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cleanup

  • Loading branch information...
commit 3be4cef3bdecd2bc28c14ae82cba06ccbc60e65a 1 parent 1b16a78
@efsavage authored
View
8 src/main/java/com/efsavage/jquery/servlet/BootstrapCssResponsiveServlet.java
@@ -39,15 +39,15 @@
public class BootstrapCssResponsiveServlet extends HttpServlet {
@Override
- protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
+ protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {
resp.setContentType("text/css");
- PrintWriter out = resp.getWriter();
+ final PrintWriter out = resp.getWriter();
String src = "/com/twitter/bootstrap/css/bootstrap-responsive.min.css";
if ("false".equals(req.getParameter("min"))) {
src = "/com/twitter/bootstrap/css/bootstrap-responsive.css";
}
- InputStream cssStream = getClass().getResourceAsStream(src);
- String css = new Scanner(cssStream).useDelimiter("\\A").next();
+ final InputStream cssStream = getClass().getResourceAsStream(src);
+ final String css = new Scanner(cssStream).useDelimiter("\\A").next();
out.write(css);
}
View
8 src/main/java/com/efsavage/jquery/servlet/BootstrapCssServlet.java
@@ -38,15 +38,15 @@
public class BootstrapCssServlet extends HttpServlet {
@Override
- protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
+ protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {
resp.setContentType("text/css");
- PrintWriter out = resp.getWriter();
+ final PrintWriter out = resp.getWriter();
String src = "/com/twitter/bootstrap/css/bootstrap.min.css";
if ("false".equals(req.getParameter("min"))) {
src = "/com/twitter/bootstrap/css/bootstrap.css";
}
- InputStream cssStream = getClass().getResourceAsStream(src);
- String css = new Scanner(cssStream).useDelimiter("\\A").next();
+ final InputStream cssStream = getClass().getResourceAsStream(src);
+ final String css = new Scanner(cssStream).useDelimiter("\\A").next();
out.write(css);
}
View
10 src/main/java/com/efsavage/jquery/servlet/BootstrapGlyphIconsBlackServlet.java
@@ -37,12 +37,12 @@
public class BootstrapGlyphIconsBlackServlet extends HttpServlet {
@Override
- protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
+ protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {
resp.setContentType("image/png");
- PrintWriter out = resp.getWriter();
- String src = "/com/twitter/bootstrap/img/glyphicons-halflings.png";
- InputStream imgStream = getClass().getResourceAsStream(src);
- String img = new Scanner(imgStream).useDelimiter("\\A").next();
+ final PrintWriter out = resp.getWriter();
+ final String src = "/com/twitter/bootstrap/img/glyphicons-halflings.png";
+ final InputStream imgStream = getClass().getResourceAsStream(src);
+ final String img = new Scanner(imgStream).useDelimiter("\\A").next();
out.write(img);
}
View
10 src/main/java/com/efsavage/jquery/servlet/BootstrapGlyphIconsWhiteServlet.java
@@ -37,12 +37,12 @@
public class BootstrapGlyphIconsWhiteServlet extends HttpServlet {
@Override
- protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
+ protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {
resp.setContentType("image/png");
- PrintWriter out = resp.getWriter();
- String src = "/com/twitter/bootstrap/img/glyphicons-halflings-white.png";
- InputStream imgStream = getClass().getResourceAsStream(src);
- String img = new Scanner(imgStream).useDelimiter("\\A").next();
+ final PrintWriter out = resp.getWriter();
+ final String src = "/com/twitter/bootstrap/img/glyphicons-halflings-white.png";
+ final InputStream imgStream = getClass().getResourceAsStream(src);
+ final String img = new Scanner(imgStream).useDelimiter("\\A").next();
out.write(img);
}
View
8 src/main/java/com/efsavage/jquery/servlet/BootstrapJavaScriptServlet.java
@@ -38,15 +38,15 @@
public class BootstrapJavaScriptServlet extends HttpServlet {
@Override
- protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
+ protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {
resp.setContentType("text/js");
- PrintWriter out = resp.getWriter();
+ final PrintWriter out = resp.getWriter();
String src = "/com/twitter/bootstrap/js/bootstrap.min.js";
if ("false".equals(req.getParameter("min"))) {
src = "/com/twitter/bootstrap/js/bootstrap.js";
}
- InputStream jsStream = getClass().getResourceAsStream(src);
- String js = new Scanner(jsStream).useDelimiter("\\A").next();
+ final InputStream jsStream = getClass().getResourceAsStream(src);
+ final String js = new Scanner(jsStream).useDelimiter("\\A").next();
out.write(js);
}
Please sign in to comment.
Something went wrong with that request. Please try again.