1 /*
2 * Copyright (C) 2011, 2013 Robin Rosenberg
3 * Copyright (C) 2013 Robin Stocker and others
4 *
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Distribution License v. 1.0 which is available at
7 * https://www.eclipse.org/org/documents/edl-v10.php.
8 *
9 * SPDX-License-Identifier: BSD-3-Clause
10 */
11
12 package org.eclipse.jgit.util.io;
13
14 class Strings {
15 static String repeat(String input, int size) {
16 StringBuilder sb = new StringBuilder(input.length() * size);
17 for (int i = 0; i < size; i++)
18 sb.append(input);
19 String s = sb.toString();
20 return s;
21 }
22 }