aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/com/puppycrawl/tools/checkstyle/checks/indentation/InputChainedMethods.java
blob: 01ad76fa0faa15f00d3cbded09903ce103a2d363 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.puppycrawl.tools.checkstyle.checks.indentation; //indent:0 exp:0

public class InputChainedMethods { //indent:0 exp:0

    public static void main(String [] args) { //indent:4 exp:4
        MockRDD mockRDD = new MockRDD(); //indent:8 exp:8
        mockRDD.mapToPair( //indent:8 exp:8
            null //indent:12 exp:12
        ).saveAsHadoopFile(  //indent:8 exp:8
            null //indent:12 exp:12
        );  //indent:8 exp:8
    }  //indent:4 exp:4

    private static class MockRDD { //indent:4 exp:4

        public MockRDD mapToPair(Object arg) { //indent:8 exp:8
            return this; //indent:12 exp:12
        } //indent:8 exp:8

        public MockRDD saveAsHadoopFile(Object... args) { //indent:8 exp:8
            return this; //indent:12 exp:12
        } //indent:8 exp:8

    } //indent:4 exp:4
} //indent:0 exp:0