If an application for trademark registration is filed, then the Commissioner of the Japan Patent Office must publish the trademark application.
特許庁長官は、商標登録出願があつたときは、出願公開をしなければならない。
The publication of a trademark application is made by publishing the following matters in the trademark gazette; provided, however, that this does not apply to matters listed in items (iii) and (iv) above, if the Commissioner of the Japan Patent Office finds that publishing those particulars in the trademark gazette is likely to cause damage to public policy:
the name and the domicile or residence of the trademark registration applicant;
商標登録出願人の氏名又は名称及び住所又は居所
the number and date of the trademark registration application;
商標登録出願の番号及び年月日
the trademark stated in the application (in the case provided in Article 5, paragraph (3), the trademark represented in standard characters; the same applies hereinafter);
the designated goods or designated services; and
指定商品又は指定役務
other necessary matters beyond those listed in the preceding items.
前各号に掲げるもののほか、必要な事項
Read this with the articles around it
public policy
公の秩序又は善良の風俗
Public order and good morals, called 公序 (public policy) for short in the heading of Article 42 of the Act on General Rules for Application of Laws. The law refuses effect to what goes against them: a juridical act (法律行為), such as a contract, that goes against them is void (Civil Code, Article 90); a custom that does not go against them has the same effect as a law only where laws and regulations authorise it or it concerns a matter they do not provide for (Act on General Rules for Application of Laws, Article 3); and where that Act makes a foreign law govern, a provision of that law is not applied if applying it would go against them (Article 42).
Written for this site using Civil Code, Art. 90 and Act on General Rules for Application of Laws, Arts. 3, 42 as a reference.