mirror of
https://github.com/revanced/smali.git
synced 2025-06-13 04:27:38 +02:00
Fixed the copyright noticed for files that came from dx, and had been mistakenly changed to the smali BSD license
git-svn-id: https://smali.googlecode.com/svn/trunk@680 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
@ -1,35 +1,21 @@
|
|||||||
/*
|
/*
|
||||||
* [The "BSD licence"]
|
* Copyright (C) 2007 The Android Open Source Project
|
||||||
* Copyright (c) 2010 Ben Gruver (JesusFreke)
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* modification, are permitted provided that the following conditions
|
* you may not use this file except in compliance with the License.
|
||||||
* are met:
|
* You may obtain a copy of the License at
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the distribution.
|
|
||||||
* 3. The name of the author may not be used to endorse or promote products
|
|
||||||
* derived from this software without specific prior written permission.
|
|
||||||
*
|
*
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
*
|
||||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
* See the License for the specific language governing permissions and
|
||||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
* limitations under the License.
|
||||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jf.dexlib.Util;
|
package org.jf.dexlib.Util;
|
||||||
|
|
||||||
import org.jf.dexlib.Util.Output;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface for a binary output destination that may be augmented
|
* Interface for a binary output destination that may be augmented
|
||||||
* with textual annotations.
|
* with textual annotations.
|
||||||
|
@ -1,29 +1,17 @@
|
|||||||
/*
|
/*
|
||||||
* [The "BSD licence"]
|
* Copyright (C) 2007 The Android Open Source Project
|
||||||
* Copyright (c) 2010 Ben Gruver (JesusFreke)
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* modification, are permitted provided that the following conditions
|
* you may not use this file except in compliance with the License.
|
||||||
* are met:
|
* You may obtain a copy of the License at
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the distribution.
|
|
||||||
* 3. The name of the author may not be used to endorse or promote products
|
|
||||||
* derived from this software without specific prior written permission.
|
|
||||||
*
|
*
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
*
|
||||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
* See the License for the specific language governing permissions and
|
||||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
* limitations under the License.
|
||||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jf.dexlib.Util;
|
package org.jf.dexlib.Util;
|
||||||
|
@ -1,29 +1,17 @@
|
|||||||
/*
|
/*
|
||||||
* [The "BSD licence"]
|
* Copyright (C) 2007 The Android Open Source Project
|
||||||
* Copyright (c) 2010 Ben Gruver (JesusFreke)
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* modification, are permitted provided that the following conditions
|
* you may not use this file except in compliance with the License.
|
||||||
* are met:
|
* You may obtain a copy of the License at
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the distribution.
|
|
||||||
* 3. The name of the author may not be used to endorse or promote products
|
|
||||||
* derived from this software without specific prior written permission.
|
|
||||||
*
|
*
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
*
|
||||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
* See the License for the specific language governing permissions and
|
||||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
* limitations under the License.
|
||||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jf.dexlib.Util;
|
package org.jf.dexlib.Util;
|
||||||
|
@ -1,29 +1,17 @@
|
|||||||
/*
|
/*
|
||||||
* [The "BSD licence"]
|
* Copyright (C) 2007 The Android Open Source Project
|
||||||
* Copyright (c) 2010 Ben Gruver (JesusFreke)
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* modification, are permitted provided that the following conditions
|
* you may not use this file except in compliance with the License.
|
||||||
* are met:
|
* You may obtain a copy of the License at
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the distribution.
|
|
||||||
* 3. The name of the author may not be used to endorse or promote products
|
|
||||||
* derived from this software without specific prior written permission.
|
|
||||||
*
|
*
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
*
|
||||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
* See the License for the specific language governing permissions and
|
||||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
* limitations under the License.
|
||||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jf.dexlib.Util;
|
package org.jf.dexlib.Util;
|
||||||
|
@ -1,29 +1,17 @@
|
|||||||
/*
|
/*
|
||||||
* [The "BSD licence"]
|
* Copyright (C) 2007 The Android Open Source Project
|
||||||
* Copyright (c) 2010 Ben Gruver (JesusFreke)
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* modification, are permitted provided that the following conditions
|
* you may not use this file except in compliance with the License.
|
||||||
* are met:
|
* You may obtain a copy of the License at
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the distribution.
|
|
||||||
* 3. The name of the author may not be used to endorse or promote products
|
|
||||||
* derived from this software without specific prior written permission.
|
|
||||||
*
|
*
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
*
|
||||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
* See the License for the specific language governing permissions and
|
||||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
* limitations under the License.
|
||||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jf.dexlib.Util;
|
package org.jf.dexlib.Util;
|
||||||
|
@ -1,29 +1,17 @@
|
|||||||
/*
|
/*
|
||||||
* [The "BSD licence"]
|
* Copyright (C) 2007 The Android Open Source Project
|
||||||
* Copyright (c) 2010 Ben Gruver (JesusFreke)
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* modification, are permitted provided that the following conditions
|
* you may not use this file except in compliance with the License.
|
||||||
* are met:
|
* You may obtain a copy of the License at
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the distribution.
|
|
||||||
* 3. The name of the author may not be used to endorse or promote products
|
|
||||||
* derived from this software without specific prior written permission.
|
|
||||||
*
|
*
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
*
|
||||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
* See the License for the specific language governing permissions and
|
||||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
* limitations under the License.
|
||||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jf.dexlib.Util;
|
package org.jf.dexlib.Util;
|
||||||
@ -59,7 +47,7 @@ public final class IndentingWriter extends FilterWriter {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs an instance.
|
* Constructs an instance.
|
||||||
*
|
*
|
||||||
* @param out non-null; writer to send final output to
|
* @param out non-null; writer to send final output to
|
||||||
* @param width >= 0; the maximum output width (not including
|
* @param width >= 0; the maximum output width (not including
|
||||||
* <code>prefix</code>), or <code>0</code> for no maximum
|
* <code>prefix</code>), or <code>0</code> for no maximum
|
||||||
@ -89,7 +77,7 @@ public final class IndentingWriter extends FilterWriter {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a no-prefix instance.
|
* Constructs a no-prefix instance.
|
||||||
*
|
*
|
||||||
* @param out non-null; writer to send final output to
|
* @param out non-null; writer to send final output to
|
||||||
* @param width >= 0; the maximum output width (not including
|
* @param width >= 0; the maximum output width (not including
|
||||||
* <code>prefix</code>), or <code>0</code> for no maximum
|
* <code>prefix</code>), or <code>0</code> for no maximum
|
||||||
|
@ -1,29 +1,17 @@
|
|||||||
/*
|
/*
|
||||||
* [The "BSD licence"]
|
* Copyright (C) 2007 The Android Open Source Project
|
||||||
* Copyright (c) 2010 Ben Gruver (JesusFreke)
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* modification, are permitted provided that the following conditions
|
* you may not use this file except in compliance with the License.
|
||||||
* are met:
|
* You may obtain a copy of the License at
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the distribution.
|
|
||||||
* 3. The name of the author may not be used to endorse or promote products
|
|
||||||
* derived from this software without specific prior written permission.
|
|
||||||
*
|
*
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
*
|
||||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
* See the License for the specific language governing permissions and
|
||||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
* limitations under the License.
|
||||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jf.dexlib.Util;
|
package org.jf.dexlib.Util;
|
||||||
|
@ -1,29 +1,17 @@
|
|||||||
/*
|
/*
|
||||||
* [The "BSD licence"]
|
* Copyright (C) 2007 The Android Open Source Project
|
||||||
* Copyright (c) 2010 Ben Gruver (JesusFreke)
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* modification, are permitted provided that the following conditions
|
* you may not use this file except in compliance with the License.
|
||||||
* are met:
|
* You may obtain a copy of the License at
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
|
||||||
* documentation and/or other materials provided with the distribution.
|
|
||||||
* 3. The name of the author may not be used to endorse or promote products
|
|
||||||
* derived from this software without specific prior written permission.
|
|
||||||
*
|
*
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
*
|
||||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
* See the License for the specific language governing permissions and
|
||||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
* limitations under the License.
|
||||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jf.dexlib.Util;
|
package org.jf.dexlib.Util;
|
||||||
@ -57,7 +45,7 @@ public final class TwoColumnOutput {
|
|||||||
/**
|
/**
|
||||||
* Turns the given two strings (with widths) and spacer into a formatted
|
* Turns the given two strings (with widths) and spacer into a formatted
|
||||||
* two-column string.
|
* two-column string.
|
||||||
*
|
*
|
||||||
* @param s1 non-null; first string
|
* @param s1 non-null; first string
|
||||||
* @param width1 > 0; width of the first column
|
* @param width1 > 0; width of the first column
|
||||||
* @param spacer non-null; spacer string
|
* @param spacer non-null; spacer string
|
||||||
@ -87,7 +75,7 @@ public final class TwoColumnOutput {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs an instance.
|
* Constructs an instance.
|
||||||
*
|
*
|
||||||
* @param out non-null; writer to send final output to
|
* @param out non-null; writer to send final output to
|
||||||
* @param leftWidth > 0; width of the left column, in characters
|
* @param leftWidth > 0; width of the left column, in characters
|
||||||
* @param rightWidth > 0; width of the right column, in characters
|
* @param rightWidth > 0; width of the right column, in characters
|
||||||
@ -125,7 +113,7 @@ public final class TwoColumnOutput {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs an instance.
|
* Constructs an instance.
|
||||||
*
|
*
|
||||||
* @param out non-null; stream to send final output to
|
* @param out non-null; stream to send final output to
|
||||||
* @param leftWidth >= 1; width of the left column, in characters
|
* @param leftWidth >= 1; width of the left column, in characters
|
||||||
* @param rightWidth >= 1; width of the right column, in characters
|
* @param rightWidth >= 1; width of the right column, in characters
|
||||||
@ -138,7 +126,7 @@ public final class TwoColumnOutput {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the writer to use to write to the left column.
|
* Gets the writer to use to write to the left column.
|
||||||
*
|
*
|
||||||
* @return non-null; the left column writer
|
* @return non-null; the left column writer
|
||||||
*/
|
*/
|
||||||
public Writer getLeft() {
|
public Writer getLeft() {
|
||||||
@ -147,7 +135,7 @@ public final class TwoColumnOutput {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the writer to use to write to the right column.
|
* Gets the writer to use to write to the right column.
|
||||||
*
|
*
|
||||||
* @return non-null; the right column writer
|
* @return non-null; the right column writer
|
||||||
*/
|
*/
|
||||||
public Writer getRight() {
|
public Writer getRight() {
|
||||||
@ -233,12 +221,12 @@ public final class TwoColumnOutput {
|
|||||||
/**
|
/**
|
||||||
* Appends a newline to the given buffer via the given writer, but
|
* Appends a newline to the given buffer via the given writer, but
|
||||||
* only if it isn't empty and doesn't already end with one.
|
* only if it isn't empty and doesn't already end with one.
|
||||||
*
|
*
|
||||||
* @param buf non-null; the buffer in question
|
* @param buf non-null; the buffer in question
|
||||||
* @param out non-null; the writer to use
|
* @param out non-null; the writer to use
|
||||||
*/
|
*/
|
||||||
private static void appendNewlineIfNecessary(StringBuffer buf,
|
private static void appendNewlineIfNecessary(StringBuffer buf,
|
||||||
Writer out)
|
Writer out)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
int len = buf.length();
|
int len = buf.length();
|
||||||
|
|
||||||
@ -249,7 +237,7 @@ public final class TwoColumnOutput {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Writes the given number of spaces to the given writer.
|
* Writes the given number of spaces to the given writer.
|
||||||
*
|
*
|
||||||
* @param out non-null; where to write
|
* @param out non-null; where to write
|
||||||
* @param amt >= 0; the number of spaces to write
|
* @param amt >= 0; the number of spaces to write
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user