From 0b13a0c1685b5c5f34479768e536e6b270e00583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20W=C3=B6hrl?= Date: Fri, 24 Nov 2017 06:41:30 -0800 Subject: [PATCH] Fix generation of license header for java Summary: If you run ```enums.py``` it will revert the changes from 835b2bb . This changes the license header for java to not be a javadocs comment. Closes https://github.com/facebook/yoga/pull/660 Differential Revision: D6407985 Pulled By: emilsjolander fbshipit-source-id: 49efe555fecb8d740675c6b4631dce2a64f10417 --- enums.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enums.py b/enums.py index 48d94a41..11852cf2 100644 --- a/enums.py +++ b/enums.py @@ -181,7 +181,7 @@ with open(root + '/yoga/YGEnums.cpp', 'w') as f: # write out java files for name, values in sorted(ENUMS.items()): with open(root + '/java/com/facebook/yoga/Yoga%s.java' % name, 'w') as f: - f.write(LICENSE) + f.write(LICENSE.replace('/**', '/*', 1)) f.write('package com.facebook.yoga;\n\n') f.write('import com.facebook.proguard.annotations.DoNotStrip;\n\n') f.write('@DoNotStrip\n')