[Libreoffice-commits] online.git: android/lib

Jan Holesovsky (via logerrit) logerrit at kemper.freedesktop.org
Wed Mar 18 17:29:49 UTC 2020


 android/lib/src/main/java/org/libreoffice/androidlib/lok/LokClipboardData.java |   28 ++++++----
 1 file changed, 19 insertions(+), 9 deletions(-)

New commits:
commit 1b4e40198ccab88bf09a05bb130b8f646faa8077
Author:     Jan Holesovsky <kendy at collabora.com>
AuthorDate: Wed Mar 18 12:08:41 2020 +0100
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Wed Mar 18 18:29:31 2020 +0100

    android: Tabs to spaces.
    
    Change-Id: I5ab52ef34126f2c3e90ff9199d2e42dd24bc6ebe
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90693
    Tested-by: Jan Holesovsky <kendy at collabora.com>
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/android/lib/src/main/java/org/libreoffice/androidlib/lok/LokClipboardData.java b/android/lib/src/main/java/org/libreoffice/androidlib/lok/LokClipboardData.java
index 85fc62710..4ae654f6d 100644
--- a/android/lib/src/main/java/org/libreoffice/androidlib/lok/LokClipboardData.java
+++ b/android/lib/src/main/java/org/libreoffice/androidlib/lok/LokClipboardData.java
@@ -1,3 +1,12 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
 package org.libreoffice.androidlib.lok;
 
 import android.util.Base64;
@@ -42,10 +51,10 @@ public class LokClipboardData implements Serializable {
     public boolean writeToFile(File file) {
         try {
             FileOutputStream fileStream = new FileOutputStream(file.getAbsoluteFile());
-	    ObjectOutputStream oos = new ObjectOutputStream(fileStream);
-	    oos.writeObject(this);
-	    oos.close();
-	    fileStream.close();
+            ObjectOutputStream oos = new ObjectOutputStream(fileStream);
+            oos.writeObject(this);
+            oos.close();
+            fileStream.close();
         } catch (IOException e) {
             e.printStackTrace();
             return false;
@@ -56,11 +65,11 @@ public class LokClipboardData implements Serializable {
     public static LokClipboardData createFromFile(File file) {
         try {
             FileInputStream fileStream = new FileInputStream(file.getAbsoluteFile());
-	    ObjectInputStream ois = new ObjectInputStream(fileStream);
-	    LokClipboardData data = (LokClipboardData)ois.readObject();
-	    ois.close();
-	    fileStream.close();
-	    return data;
+            ObjectInputStream ois = new ObjectInputStream(fileStream);
+            LokClipboardData data = (LokClipboardData)ois.readObject();
+            ois.close();
+            fileStream.close();
+            return data;
         } catch (IOException e) {
             e.printStackTrace();
             return null;
@@ -78,3 +87,4 @@ public class LokClipboardData implements Serializable {
     }
 }
 
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */


More information about the Libreoffice-commits mailing list