Here you can find the source of minIndent(int a, int b)
public static int minIndent(int a, int b)
//package com.java2s; /******************************************************************************* * Copyright (c) 2015 Pivotal, Inc.//from w ww . j a va 2 s .co m * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Pivotal, Inc. - initial API and implementation *******************************************************************************/ public class Main { /** * Determine the 'known minimum' of two indentation levels. Correctly handle * when either one or both indent levels are '-1' (unknown). */ public static int minIndent(int a, int b) { if (a == -1) { return b; } else if (b == -1) { return a; } else { return Math.min(a, b); } } }