Commit 69fe32b1 authored by igor-suhorukov's avatar igor-suhorukov Committed by Stephane Nicoll

Polish

Replace class "Stack" by more modern "Deque"

Closes gh-12304
parent 5d041a62
/*
* 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");
* you may not use this file except in compliance with the License.
......@@ -16,7 +16,8 @@
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.
......@@ -27,7 +28,7 @@ public class ShellPrompts {
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.
......
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