Commit a80c86ba authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #12304 from igor-suhorukov:master

* pr/12304:
  Polish
parents 5d041a62 69fe32b1
/* /*
* Copyright 2012-2017 the original author or authors. * Copyright 2012-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
package org.springframework.boot.cli.command.shell; package org.springframework.boot.cli.command.shell;
import java.util.Stack; import java.util.ArrayDeque;
import java.util.Deque;
/** /**
* Abstraction to manage a stack of prompts. * Abstraction to manage a stack of prompts.
...@@ -27,7 +28,7 @@ public class ShellPrompts { ...@@ -27,7 +28,7 @@ public class ShellPrompts {
private static final String DEFAULT_PROMPT = "$ "; private static final String DEFAULT_PROMPT = "$ ";
private final Stack<String> prompts = new Stack<>(); private final Deque<String> prompts = new ArrayDeque<>();
/** /**
* Push a new prompt to be used by the shell. * Push a new prompt to be used by the shell.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment