RemoveFirstLine.java revision e0ae5d7e87b1dd6e789803c1b9615a84bd7488b7
1/* 2 * Copyright (c) 2007 Mockito contributors 3 * This program is made available under the terms of the MIT License. 4 */ 5package org.mockito.internal.util; 6 7public class RemoveFirstLine { 8 9 /** 10 * @param text to have the first line removed 11 * @return less first line 12 */ 13 public String of(String text) { 14 return text.replaceFirst(".*?\n", ""); 15 } 16} 17